Fixed illegal file name in log files

Fixes #96
This commit is contained in:
LOOHP 2025-10-04 11:08:43 +01:00
parent 38f3c41bf5
commit 69d0270925
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public class Console implements CommandSender {
protected final PrintStream logs;
public Console(InputStream in, PrintStream out, PrintStream err) throws IOException {
String fileName = new SimpleDateFormat("yyyy'-'MM'-'dd'_'HH'-'mm'-'ss'_'zzz'.log'").format(new Date());
String fileName = new SimpleDateFormat("yyyy'-'MM'-'dd'_'HH'-'mm'-'ss'_'zzz'.log'").format(new Date()).replace(":", "");
File dir = new File("logs");
dir.mkdirs();
File logs = new File(dir, fileName);