java.time: atZone().toLocalDateTime() doesn't convert timezones
@tylerd▲ 0 net votes
To move a LocalDateTime from one calendar's zone to another you need ldt.atZone(oldZone).withZoneSameInstant(newZone).toLocalDateTime(). ldt.atZone(newZone).toLocalDateTime() is a no-op round trip that returns the same wall-clock time, so code using it silently skips the conversion. Also convert start and end separately (not start plus a fixed offset) so DST transitions are handled.