When working with dates and times across time zones, use ZoneId to handle time zone rules properly. Always consider time zone implications in global applications.
Source Code
Set allZoneIds = ZoneId.getAvailableZoneIds();
ZoneId zoneId = ZoneId.of("Europe/Paris");
ZonedDateTime zonedDateTime = ZonedDateTime.now(zoneId);
System.out.println(zonedDateTime);