mirror of
https://github.com/tildeclub/ttbp.git
synced 2026-01-24 18:50:18 +00:00
modifying www feed timestamp
changed the timezone display to look neater
This commit is contained in:
@@ -710,7 +710,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)) + time.strftime(" (%z)")
|
timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last)) + " (utc"+time.strftime("%z")[0]+time.strftime("%z")[2]+")"
|
||||||
else:
|
else:
|
||||||
timestamp = ""
|
timestamp = ""
|
||||||
last = 0
|
last = 0
|
||||||
|
|||||||
@@ -707,7 +707,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)) + time.strftime(" (%z)")
|
timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last)) + " (utc"+time.strftime("%z")[0]+time.strftime("%z")[2]+")"
|
||||||
else:
|
else:
|
||||||
timestamp = ""
|
timestamp = ""
|
||||||
last = 0
|
last = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user