Changed default dateTimeFormat to ISO standard

56-bugfix
szymon 2020-12-06 22:09:19 +01:00
parent 7e7280bb82
commit 1b321b7a64
3 changed files with 3 additions and 4 deletions

View File

@ -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" + "Remember not to use '#' symbol or any other character that is not allowed by your operating system such as:\n" +
"':', '\\', etc...\n" + "':', '\\', etc...\n" +
"For more info: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html\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() { public Optional<String> sanitize() {
if(compressionCoreCountLimit > Runtime.getRuntime().availableProcessors()) if(compressionCoreCountLimit > Runtime.getRuntime().availableProcessors())

View File

@ -70,8 +70,7 @@ public class TextileBackup implements ModInitializer {
//Restart Executor Service in singleplayer //Restart Executor Service in singleplayer
ServerLifecycleEvents.SERVER_STARTING.register(ignored -> { ServerLifecycleEvents.SERVER_STARTING.register(ignored -> {
if(Statics.executorService.isShutdown()) if(Statics.executorService.isShutdown()) Statics.executorService = Executors.newSingleThreadExecutor();
Statics.executorService = Executors.newSingleThreadExecutor();
}); });
ServerLifecycleEvents.SERVER_STOPPED.register(server -> { ServerLifecycleEvents.SERVER_STOPPED.register(server -> {

View File

@ -44,7 +44,7 @@ public class AwaitThread extends Thread {
// 𝄞 This is final count down! Tu ruru Tu, Tu Ru Tu Tu ♪ // 𝄞 This is final count down! Tu ruru Tu, Tu Ru Tu Tu ♪
try { try {
Thread.sleep(delay * 1000); Thread.sleep(delay * 1000L);
} catch (InterruptedException e) { } catch (InterruptedException e) {
Statics.LOGGER.info("Backup restoration cancelled."); Statics.LOGGER.info("Backup restoration cancelled.");
return; return;