Java tutorial
import java.time.ZoneId; import java.util.TimeZone; public class Main { public static void main(String[] args) { // TimeZone to ZoneId ZoneId defaultZone = TimeZone.getDefault().toZoneId(); System.out.println(defaultZone); } }