Skip to content

Commit 5d79f41

Browse files
committed
fix footer version formatting
1 parent cb9d825 commit 5d79f41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/web_viewer/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ def run(cmd: List[str]) -> Optional[str]:
195195
out["commit"] = commit or None
196196
if date_raw:
197197
try:
198-
# %ci is ISO format; take date part only
199-
out["date"] = date_raw.split("T")[0]
198+
# %ci is "YYYY-MM-DD HH:MM:SS +tz"; take date part only
199+
out["date"] = date_raw.split()[0]
200200
except IndexError:
201201
out["date"] = date_raw
202202
return out

0 commit comments

Comments
 (0)