Skip to content

Instantly share code, notes, and snippets.

@higarin
Created February 6, 2020 03:27
Show Gist options
  • Save higarin/1e44e3291d65d17681ade7d3a0bb57d1 to your computer and use it in GitHub Desktop.
Save higarin/1e44e3291d65d17681ade7d3a0bb57d1 to your computer and use it in GitHub Desktop.
OffsetDateTime
OffsetDateTime.of(
OffsetDateTime
.now(ZoneId.of("Asia/Tokyo"))
.atZoneSameInstant(ZoneId.of("UTC"))
.toLocalDateTime(),
ZoneOffset.UTC)
.atZoneSameInstant(ZoneId.of("Asia/Tokyo"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment