fix(worker): adjust timestamp format in journal entries

- Updates the timestamp format from HH:MM:SS to HH:MM for journal logs
- Simplifies the time representation in generated journal paths
This commit is contained in:
2025-05-18 20:41:14 +02:00
parent 98fc0596d4
commit 2c0cffe16a

View File

@@ -50,7 +50,7 @@ class WhisperWorker(QThread):
if CURRENT_PRESET_LOCALE.mode == "journal": if CURRENT_PRESET_LOCALE.mode == "journal":
today = datetime.date.today().strftime("%Y.%m.%d") today = datetime.date.today().strftime("%Y.%m.%d")
journal_path = os.path.join(CURENT_CONFIG_LOCALE.journal_path, f"{today} - {CURRENT_PRESET_LOCALE.journal_name}.md") journal_path = os.path.join(CURENT_CONFIG_LOCALE.journal_path, f"{today} - {CURRENT_PRESET_LOCALE.journal_name}.md")
now = datetime.datetime.now().strftime("%H:%M:%S") now = datetime.datetime.now().strftime("%H:%M")
if not os.path.exists(journal_path): if not os.path.exists(journal_path):
try: try:
with open(journal_path, "w") as f: with open(journal_path, "w") as f: