Changed default dateTimeFormat to ISO standard
							parent
							
								
									7e7280bb82
								
							
						
					
					
						commit
						1b321b7a64
					
				|  | @ -98,7 +98,7 @@ public class ConfigHandler { | |||
|             "Remember not to use '#' symbol or any other character that is not allowed by your operating system such as:\n" + | ||||
|             "':', '\\', etc...\n" + | ||||
|             "For more info: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html\n") | ||||
|     public String dateTimeFormat = "dd.MM.yyyy_HH-mm-ss"; | ||||
|     public String dateTimeFormat = "yyyy.MM.dd_HH-mm-ss"; | ||||
| 
 | ||||
|     public Optional<String> sanitize() { | ||||
|         if(compressionCoreCountLimit > Runtime.getRuntime().availableProcessors()) | ||||
|  |  | |||
|  | @ -70,8 +70,7 @@ public class TextileBackup implements ModInitializer { | |||
| 
 | ||||
|         //Restart Executor Service in singleplayer
 | ||||
|         ServerLifecycleEvents.SERVER_STARTING.register(ignored -> { | ||||
|             if(Statics.executorService.isShutdown()) | ||||
|                 Statics.executorService = Executors.newSingleThreadExecutor(); | ||||
|             if(Statics.executorService.isShutdown()) Statics.executorService = Executors.newSingleThreadExecutor(); | ||||
|         }); | ||||
| 
 | ||||
|         ServerLifecycleEvents.SERVER_STOPPED.register(server -> { | ||||
|  |  | |||
|  | @ -44,7 +44,7 @@ public class AwaitThread extends Thread { | |||
| 
 | ||||
|         // 𝄞 This is final count down! Tu ruru Tu, Tu Ru Tu Tu ♪
 | ||||
|         try { | ||||
|             Thread.sleep(delay * 1000); | ||||
|             Thread.sleep(delay * 1000L); | ||||
|         } catch (InterruptedException e) { | ||||
|             Statics.LOGGER.info("Backup restoration cancelled."); | ||||
|             return; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue