Skip to content

Commit

Permalink
fix datetime subtract error
Browse files Browse the repository at this point in the history
  • Loading branch information
robinklaassen committed Nov 10, 2024
1 parent 18431d5 commit 7ccf5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aid/collect/base_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7ccf5e8

Please sign in to comment.