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:
parent
4304aab8b7
commit
c87dc32455
@ -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")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user