From 0ed10326a182d6d37845cf5eb074e3e505d403cf Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sun, 24 Oct 2021 23:11:36 +0800 Subject: Routine: strip away tzinfo from datetime --- jimbrella/routine.py | 1 + 1 file changed, 1 insertion(+) 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"], -- cgit v1.2.3