From 821ed5ab086138140855031a4b969d3b56ac1e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdulkadir=20Furkan=20=C5=9Eanl=C4=B1?= Date: Tue, 23 Jan 2024 18:06:23 +0100 Subject: [PATCH] Fix datetime shit again. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Abdulkadir Furkan Şanlı --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 24b5385..0aaad6f 100755 --- a/main.py +++ b/main.py @@ -194,7 +194,7 @@ async def message_callback(client, room, event): youtube_links = re.findall(youtube_link_pattern, body) timestamp_sec = datetime.datetime.fromtimestamp( - event.server_timestamp / 1000, datetime.datetime.UTC + event.server_timestamp / 1000, datetime.UTC ) # milisec to sec current_time = datetime.datetime.now(datetime.UTC)