We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 134c654 commit 215bb9cCopy full SHA for 215bb9c
1 file changed
dev_tools/docs/anchor_list.py
@@ -112,13 +112,10 @@ def write(self):
112
"""Write the in-memory registry to files"""
113
if not self._writing_enabled:
114
return
115
+ utcnow = datetime.datetime.now(datetime.timezone.utc).isoformat()
116
contents = dict(
117
_metadata=dict(
- # datetime=datetime.datetime.now(datetime.UTC).isoformat(),
118
- # the next line is the py3.9 supported way of getting the datetime
119
- # this will become deprecated however in py3.12 for which the
120
- # line above-mentioned is a fix, which however does not work in py3.9
121
- datetime=datetime.datetime.now(datetime.UTC).isoformat(),
+ datetime=utcnow,
122
title="NeXus NXDL vocabulary.",
123
subtitle="Anchors for all NeXus fields, groups, "
124
"attributes, and links.",
0 commit comments