Why does ZonedDateTime now = ZonedDateTime.now(); System.out.println(now.withZoneSameInstant(ZoneOffset.UTC) .equals(now.withZoneSameInstant(ZoneId.of("UTC")))); print out false? I would expect the both ZonedDateTime instances to be equal. 1 Answer ...
-
June 4, 2022
- 0 Comments