Skip to content

Commit 9b25857

Browse files
committed
Use ISO 8601
1 parent 29ccfd2 commit 9b25857

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

doc/conf.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,18 @@
6868
$(function () {
6969
$("time.localized").each(function () {
7070
var el = $(this);
71-
el.text(new Date(el.attr("datetime")).toLocaleString([], {
72-
dateStyle: "medium",
73-
timeStyle: "long",
71+
var d = new Date(el.attr("datetime"));
72+
var date = d.toLocaleDateString("sv-SE", {
73+
year: "numeric",
74+
month: "2-digit",
75+
day: "2-digit"
76+
});
77+
var time = d.toLocaleTimeString([], {
78+
hour: "2-digit",
79+
minute: "2-digit",
7480
hourCycle: "h23"
75-
}));
81+
});
82+
el.text(`${date} ${time}`);
7683
});
7784
});
7885
</script>"""
@@ -932,8 +939,7 @@ def fix_sklearn_inherited_docstrings(app, what, name, obj, options, lines):
932939
klass="only-dark",
933940
),
934941
dict(img="google.svg", size="2.25", title="Google"),
935-
dict(img="amazon.svg", size="2.5", title="Amazon"),
936-
dict(img="czi.svg", size="2.5", title="Chan Zuckerberg Initiative"),
942+
dict(img="amazon.svg", size="2.5", title="Chan Zuckerberg Initiative"),
937943
],
938944
"institutions": [
939945
dict(

0 commit comments

Comments
 (0)