Fix datetime shit again.

Signed-off-by: Abdulkadir Furkan Şanlı <me@abdulocra.cy>
This commit is contained in:
Abdulkadir Furkan Şanlı 2024-01-23 18:06:23 +01:00
parent 6917c1cc6a
commit 821ed5ab08
Signed by: afk
SSH Key Fingerprint: SHA256:s1hULLl4YWdqU501MUfGe1CAG/m1pf9Cs6vFsqeTNHk

View File

@ -194,7 +194,7 @@ async def message_callback(client, room, event):
youtube_links = re.findall(youtube_link_pattern, body) youtube_links = re.findall(youtube_link_pattern, body)
timestamp_sec = datetime.datetime.fromtimestamp( timestamp_sec = datetime.datetime.fromtimestamp(
event.server_timestamp / 1000, datetime.datetime.UTC event.server_timestamp / 1000, datetime.UTC
) # milisec to sec ) # milisec to sec
current_time = datetime.datetime.now(datetime.UTC) current_time = datetime.datetime.now(datetime.UTC)