diff --git a/src/org/april/hebdobot/model/Hebdobot.java b/src/org/april/hebdobot/model/Hebdobot.java index 69016ad..8fedc40 100644 --- a/src/org/april/hebdobot/model/Hebdobot.java +++ b/src/org/april/hebdobot/model/Hebdobot.java @@ -361,7 +361,7 @@ public class Hebdobot extends PircBot if (reviewFile.exists()) { LocalTime now = LocalTime.now(); - String newSuffix = String.format("-%02d'h'%02d.txt", now.getHour(), now.getMinute()); + String newSuffix = String.format("-%02dh%02d.txt", now.getHour(), now.getMinute()); reviewFile = new File(reviewFile.getAbsolutePath().replace(".txt", newSuffix)); } try @@ -596,7 +596,7 @@ public class Hebdobot extends PircBot logger.info("!date caught."); // Date command. - sendMessage(LocalDateTime.now().format(DateTimeFormatter.ofPattern("EEEE dd MMMM yyyy kk'h'mm", Locale.FRENCH))); + sendMessage(LocalDateTime.now().format(DateTimeFormatter.ofPattern("EEEE dd MMMM yyyy HH'h'mm", Locale.FRENCH))); } else if (StringsUtils.equalsAnyIgnoreCase(text, "!stats")) {