Update file name format for output_dialogs

This commit is contained in:
Looki2000 2023-11-13 23:09:03 +01:00
parent ecc8b170b4
commit 35d753c7db

View File

@ -232,7 +232,7 @@ for line in dialog:
# next_file = str(max([int(f[:-5]) for f in files]) + 1) + ".json" # next_file = str(max([int(f[:-5]) for f in files]) + 1) + ".json"
next_file = datetime.now().strftime("%d-%m-%Y_%H-%M-%S") + ".json" next_file = datetime.now().strftime("%Y-%m-%d_%H-%M-%S") + ".json"
# save to output_dialogs/next_file # save to output_dialogs/next_file
with open(root + "/output_dialogs/" + next_file, "w", encoding="utf-8") as f: with open(root + "/output_dialogs/" + next_file, "w", encoding="utf-8") as f: