Code example for TimeZone

Methods: setDefault

0
   @Override 
   @After 
   public void cleanup() throws ResourceException { 
	super.cleanup(); 
	// restore default system timezone 
	TimeZone.setDefault(defaultTimeZone);
   } 
 
   @Override 
   protected Configuration newInstance() throws ResourceException, URISyntaxException {
	return new YamlConfiguration("yamlConfig", "classpath:/config/test.yaml", new RuntimeContext<Configuration>(Configuration.class));
   } 
 
   // @Test 
   public void store2() throws ResourceException { 
	Configuration config = new YamlConfiguration("yaml2", "file:/test.yaml", new RuntimeContext<Configuration>(Configuration.class));
	config.load();
	config.store();
   } 
} 
Connect your IDE to all the code out there  Get Codota for Java