Fix datetime shit again.
Signed-off-by: Abdulkadir Furkan Şanlı <me@abdulocra.cy>
This commit is contained in:
parent
6917c1cc6a
commit
821ed5ab08
2
main.py
2
main.py
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user