summaryrefslogtreecommitdiff
path: root/jimbrella
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-10-24 23:11:36 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-10-24 23:11:36 +0800
commit0ed10326a182d6d37845cf5eb074e3e505d403cf (patch)
treead8cfef2d6140ca878db7a3dd51c48104796ecde /jimbrella
parentddaa0b2c7a9a7bae2c70ef060271fa10bef59c59 (diff)
Routine: strip away tzinfo from datetime
Diffstat (limited to 'jimbrella')
-rw-r--r--jimbrella/routine.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/jimbrella/routine.py b/jimbrella/routine.py
index 4d87c4c..469c78d 100644
--- a/jimbrella/routine.py
+++ b/jimbrella/routine.py
@@ -50,6 +50,7 @@ def sync_database(takeaway: JForm, giveback: JForm, db: Database):
# NOTE: beyond this point `takeaway_unread` and `giveback_unread` are empty
# because chronological_merge popped all their elements
for sheet in unread:
+ sheet["date"] = sheet["date"].replace(tzinfo=None) # it's UTC+8 anyway
log_args = (
sheet["name"],
sheet["id"],