1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Display full datetime using system timezone

When displaying a full datetime to the user use the system timezone instead of hardcoded UTC
This commit is contained in:
FoxxMD 2020-11-30 14:02:03 -05:00
parent 4304aab8b7
commit c87dc32455

View File

@ -545,7 +545,7 @@ def timestamp_desc(t,short=False):
return timeobject.strftime("%Y")
else:
timeobject = datetime.datetime.utcfromtimestamp(t)
timeobject = datetime.datetime.fromtimestamp(t)
return timeobject.strftime("%d. %b %Y %I:%M %p")