From 7ccf5e8a126b9cdae5f977e595e82f00cd6e2137 Mon Sep 17 00:00:00 2001 From: Robin Klaassen <13085028+robinklaassen@users.noreply.github.com> Date: Sun, 10 Nov 2024 17:02:00 +0100 Subject: [PATCH] fix datetime subtract error --- aid/collect/base_collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aid/collect/base_collector.py b/aid/collect/base_collector.py index e5b2dde..f90e546 100644 --- a/aid/collect/base_collector.py +++ b/aid/collect/base_collector.py @@ -43,7 +43,7 @@ def run(self): except Exception as exc: # anything can happen logger.error(self.__class__.__name__, err_type=exc.__class__.__name__, msg=str(exc)) return - duration_seconds = (datetime.now() - start_time).total_seconds() + duration_seconds = (datetime.now(tz=DEFAULT_TIMEZONE) - start_time).total_seconds() logger.info( self.__class__.__name__, record_count=record_count,