forked from endorphant/ttbp
timezone display
in the live feels feed, timestamp now indicates what deflection from UTC the time reads. this is based on the local time zone set for the user who caused the live feed to update.master
parent
f98513a079
commit
8041ece179
|
@ -643,7 +643,7 @@ def www_neighbors(users):
|
||||||
|
|
||||||
if lastfile:
|
if lastfile:
|
||||||
last = os.path.getctime(lastfile)
|
last = os.path.getctime(lastfile)
|
||||||
timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last))
|
timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last)) + time.strftime(" (%z)")
|
||||||
else:
|
else:
|
||||||
timestamp = ""
|
timestamp = ""
|
||||||
last = 0
|
last = 0
|
||||||
|
|
|
@ -641,7 +641,7 @@ def www_neighbors(users):
|
||||||
|
|
||||||
if lastfile:
|
if lastfile:
|
||||||
last = os.path.getctime(lastfile)
|
last = os.path.getctime(lastfile)
|
||||||
timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last))
|
timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last)) + time.strftime(" (%z)")
|
||||||
else:
|
else:
|
||||||
timestamp = ""
|
timestamp = ""
|
||||||
last = 0
|
last = 0
|
||||||
|
|
Loading…
Reference in New Issue