How to convert ZonedDateTime to milliSecond in Java?
You are using an Instant to get that milliseconds representation. Instant are not zone based. Now, the epoch time is based on the “1970-01-01T00:00:00Z” so you should not have the zone in it. If you want to create a ZoneDateTime from the epoch value, you can simply create an Instant at that epoch time and … Read more