From 248b8935271824ef64c8bd2ece7f39a485b132a8 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 3 Jul 2025 14:39:41 -0400 Subject: [PATCH] Fix event timestamp to use UTC --- src/nostr/event_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostr/event_handler.py b/src/nostr/event_handler.py index 7586eb4..56a4b3a 100644 --- a/src/nostr/event_handler.py +++ b/src/nostr/event_handler.py @@ -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