From a46ddc14372c237d8359d2f238eda4084e046cc3 Mon Sep 17 00:00:00 2001 From: joshua <joshuasend1@gmail.com> Date: Thu, 7 Jul 2022 10:53:41 +0100 Subject: [PATCH] change log file name to not use : --- src/main/java/io/FileLogger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/FileLogger.java b/src/main/java/io/FileLogger.java index fdb05ea..4edba26 100644 --- a/src/main/java/io/FileLogger.java +++ b/src/main/java/io/FileLogger.java @@ -32,7 +32,7 @@ public class FileLogger { private final String directoryString; private FileLogger() { - DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd-HH:mm:ss").withZone(ZoneId.systemDefault()); + DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd-HH_mm_ss").withZone(ZoneId.systemDefault()); File directory = new File(DATE_TIME_FORMATTER.format(new Date().toInstant())); this.directoryString = directory.toString(); if (! directory.exists()){