How do I format a javax.time.Instant as a string in the local time zone? The following translates a local Instant to UTC, not to the local time zone as I was expec
Instant
Why would you expect it to use the local time zone? You're explicitly asking for UTC:
ZonedDateTime.ofInstant(instant, TimeZone.UTC)
Just specify your local time zone instead:
ZonedDateTime.ofInstant(instant, TimeZone.getDefault())