summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-03-11 22:10:39 +0100
committeryuzu-eva <cafebabe@disroot.org>2025-03-11 22:12:37 +0100
commitf283598c5a6203c11130cc6aacc1a60da21bd0d2 (patch)
tree5bbbc3d69c177f8fb1e6f5f31f2038b9ff5ff2a8
parente988ae6b607aa96b5f2ab61886ad9f6f395f1c95 (diff)
changed add_thought to use local datetime instead of UTC
-rwxr-xr-xdatabase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/database.py b/database.py
index 31238c6..61c2947 100755
--- a/database.py
+++ b/database.py
@@ -73,7 +73,7 @@ class Database:
INSERT INTO thoughts (category_id, title, markdown_text, datetime)
VALUES ((
SELECT id FROM categories WHERE name = ?
- ), ?, ?, datetime('now'));""", (category, title, markdown))
+ ), ?, ?, datetime('now', 'localtime'));""", (category, title, markdown))
def update_thought_markdown(self, id_, markdown):
cursor = self.__connection.cursor()