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);
    } 
 
} 
Experience pair programming with AI  Get Codota for Java