Fix logs incorrect formatting

This commit is contained in:
augustin64 2024-02-18 19:40:58 +01:00
parent ebc454f7a2
commit 9a6d08d2e1

View File

@ -30,7 +30,7 @@ class LogEntry(Enum):
def add_entry(entry: str) -> None:
date = datetime.now().strftime('%y-%b-%Y %H:%M:%S')
date = datetime.now().strftime('%d-%b-%Y %H:%M:%S')
with open(log_file, 'a', encoding="utf8") as f:
f.write(f"[{date}] {entry}\n")