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