refactor: stamp site data with build_timestamp

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 05:59:58 +01:00
1 parent 88ee986ee6
commit 6df0ec503b
5 files changed
+12 -14

No files matched your search

-5
View File
@@ -48,11 +48,6 @@ def build_commit(root: Path = REPO_ROOT) -> str:
return commit
def data_timestamp() -> str:
"""The build time for data files (stats, API records), ISO 8601."""
return datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
def data_as_of(moment: datetime | None = None) -> str:
"""The build date for a reader, in words, with the machine form beside it.
A raw ISO stamp ("2026-10-22T22:43:08Z") closed the home page."""