Skip to content

Commit 19e7659

Browse files
committed
Use 24h time for website timestamp
1 parent 17c7929 commit 19e7659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
# (Sphinx looks at variable changes and rewrites all files if some change)
6565
copyright = ( # noqa: A001
6666
f'2012–{td.year}, MNE Developers. Last updated <time datetime="{td.isoformat()}" class="localized">{td.strftime("%Y-%m-%d %H:%M %Z")}</time>\n' # noqa: E501
67-
'<script type="text/javascript">function formatTimestamp() {document.querySelectorAll("time.localized").forEach(el => el.textContent = new Date(el.getAttribute("datetime")).toLocaleString([], {dateStyle: "medium", timeStyle: "long"}));};if (document.readyState != "loading") formatTimestamp();else document.addEventListener("DOMContentLoaded", formatTimestamp);</script>' # noqa: E501
67+
'<script type="text/javascript">$(function () { $("time.localized").each(function () { var el = $(this); el.text(new Date(el.attr("datetime")).toLocaleString([], {dateStyle: "medium", timeStyle: "long", hourCycle: "h23"})); }); } )</script>' # noqa: E501
6868
)
6969
if os.getenv("MNE_FULL_DATE", "false").lower() != "true":
7070
copyright = f"2012–{td.year}, MNE Developers. Last updated locally." # noqa: A001

0 commit comments

Comments
 (0)