package org.kodejava.util;
import java.util.TimeZone;
public class HostDefaultTimeZone {
public static void main(String[] args) {
// Gets the default TimeZone ID for this host
String id = TimeZone.getDefault().getID();
System.out.println("Default Time Zone ID: " + id);
}
}
The default timezone id for this host is:
Default Time Zone ID: Asia/Shanghai
Latest posts by Wayan (see all)
- How do I create a servlet filter to make secure cookies? - April 18, 2024
- How do I configure secure cookies using web.xml? - April 18, 2024
- How do I create a table with multiple header in iText 8? - March 16, 2024