From c87dc32455e0095195f0351195e4b038162db88c Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Mon, 30 Nov 2020 14:02:03 -0500 Subject: [PATCH] Display full datetime using system timezone When displaying a full datetime to the user use the system timezone instead of hardcoded UTC --- maloja/malojatime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maloja/malojatime.py b/maloja/malojatime.py index 43379c6..cc6cf4d 100644 --- a/maloja/malojatime.py +++ b/maloja/malojatime.py @@ -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")