Code example for TimeZone

Methods: setDefault

0
    public static void change(String timeZone) {
        TimeZone.setDefault(TimeZone.getTimeZone(timeZone));
    } 
 
    public static void reset() { 
        TimeZone.setDefault(originalTimeZone);
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE