From 874f88fdd37b45ed632c4f62b47876b51008b6a6 Mon Sep 17 00:00:00 2001 From: Neythen Treloar Date: Fri, 4 Mar 2022 16:32:41 +0000 Subject: [PATCH] database caller crash fix --- database_caller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database_caller.py b/database_caller.py index a094bb7..39fe3f2 100755 --- a/database_caller.py +++ b/database_caller.py @@ -723,7 +723,7 @@ if __name__ == '__main__': # update if last update was before the previous days closing forex_time = datetime.strptime(last_updates['forex'], "%d/%m/%Y %H:%M:%S") - CET_time = datetime.now(CET_zone) + CET_time = datetime.now(CET_zone).replace(tzinfo=None) yday_update = (CET_time.replace(hour=17, minute=00, second=0, microsecond=0) - dt.timedelta(days=1)).replace(tzinfo=None) diff = (CET_time.replace(tzinfo=None) - forex_time).total_seconds()/60