mirror of
https://github.com/tildeclub/ttbp.git
synced 2026-01-24 18:50:18 +00:00
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.
This commit is contained in:
@@ -643,7 +643,7 @@ def www_neighbors(users):
|
||||
|
||||
if 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:
|
||||
timestamp = ""
|
||||
last = 0
|
||||
|
||||
@@ -641,7 +641,7 @@ def www_neighbors(users):
|
||||
|
||||
if 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:
|
||||
timestamp = ""
|
||||
last = 0
|
||||
|
||||
Reference in New Issue
Block a user