From 4620116b898b7e44ef6a05521ad832ec2fdfdcb9 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 22 Jan 2024 12:29:59 +0100 Subject: [PATCH] =?UTF-8?q?schreibe=20datum=20und=20Uhrzeit=20an=20die=20E?= =?UTF-8?q?intr=C3=A4ge=20ran=20-=20ist=20immer=20gut=20zu=20haben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- journal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/journal.py b/journal.py index 4291714..d46a5ca 100755 --- a/journal.py +++ b/journal.py @@ -52,7 +52,7 @@ message_text.pack() def send_button_clicked(): with open(journal_filename_path, "a") as journal_of_the_day: - journal_of_the_day.write(name.get() + "\n") + journal_of_the_day.write("Eintrag von: " + name.get() + " um " + datetime.now().strftime("%Y-%m-%d %H:%M:%S") + "\n") journal_of_the_day.write(message_text.get(1.0, "end-1c") + "\n") journal_of_the_day.write("-----------------\n") message_text.delete('1.0', "end-1c")