diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-24 23:11:36 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-24 23:11:36 +0800 |
commit | 0ed10326a182d6d37845cf5eb074e3e505d403cf (patch) | |
tree | ad8cfef2d6140ca878db7a3dd51c48104796ecde /jimbrella | |
parent | ddaa0b2c7a9a7bae2c70ef060271fa10bef59c59 (diff) |
Routine: strip away tzinfo from datetime
Diffstat (limited to 'jimbrella')
-rw-r--r-- | jimbrella/routine.py | 1 |
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"], |