mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-31 09:52:03 +00:00
Fix event timestamp to use UTC
This commit is contained in:
1 parent
4e95a52f98
commit
248b893527
1 file changed
+1
-1
@@ -36,7 +36,7 @@ class EventHandler:
|
||||
# Assuming evt.created_at is always an integer Unix timestamp
|
||||
if isinstance(evt.created_at, int):
|
||||
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:
|
||||
# Handle unexpected types gracefully
|
||||
|
||||
Reference in new issue
Block a user