Merge pull request #207 from PR0M3TH3AN/codex/fix-test_handle_new_event_logs-failure

Fix event handler timestamp timezone bug
This commit is contained in:
thePR0M3TH3AN
2025-07-03 14:43:27 -04:00
committed by GitHub

View File

@@ -36,7 +36,7 @@ class EventHandler:
# Assuming evt.created_at is always an integer Unix timestamp # Assuming evt.created_at is always an integer Unix timestamp
if isinstance(evt.created_at, int): if isinstance(evt.created_at, int):
created_at_str = time.strftime( created_at_str = time.strftime(
"%Y-%m-%d %H:%M:%S", time.localtime(evt.created_at) "%Y-%m-%d %H:%M:%S", time.gmtime(evt.created_at)
) )
else: else:
# Handle unexpected types gracefully # Handle unexpected types gracefully