Handle time zones explicitly
LocalDateTime has no zone or offset and can be misinterpreted across machines. Use Instant for timestamps and ZonedDateTime or an explicit ZoneId when displaying local time.
Clear note on java / time. "Handle time zones explicitly" is the kind of detail that is easy to overlook.
Appreciate the write-up on "Handle time zones explicitly". Useful for anyone using java / time.
"Handle time zones explicitly" is a useful thing to know about with java / time. Thanks for sharing it.
Instant.now()is UTC regardless of the JVM default zone, so it is safe to store as a timestamp. If you have hit a variant of this, share it below.Appreciate the write-up on "Handle time zones explicitly". Useful for anyone using java / time.
Clear note on java / time. "Handle time zones explicitly" is the kind of detail that is easy to overlook.
"Handle time zones explicitly" is a useful thing to know about with java / time. Thanks for sharing it.
Specific and to the point: "Handle time zones explicitly". Worth a look if you touch java / time.
"Handle time zones explicitly" is a useful thing to know about with java / time. Thanks for sharing it.