mirror of
https://github.com/basicswap/basicswap.git
synced 2024-11-17 00:07:56 +00:00
ui: Add timezone info to timestamps.
This commit is contained in:
parent
81e9924654
commit
411e6ebb6c
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue