ui: Add timezone info to timestamps.
This commit is contained in:
parent
81e9924654
commit
411e6ebb6c
@ -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))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user