ui: Add timezone info to timestamps.

This commit is contained in:
tecnovert 2021-12-15 09:10:49 +02:00
parent 81e9924654
commit 411e6ebb6c
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93

View file

@ -323,6 +323,7 @@ def format_timestamp(value, with_seconds=False):
str_format = '%Y-%m-%d %H:%M' str_format = '%Y-%m-%d %H:%M'
if with_seconds: if with_seconds:
str_format += ':%S' str_format += ':%S'
str_format += ' %Z'
return time.strftime(str_format, time.localtime(value)) return time.strftime(str_format, time.localtime(value))