File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -112,13 +112,10 @@ def write(self):
112112 """Write the in-memory registry to files"""
113113 if not self ._writing_enabled :
114114 return
115+ utcnow = datetime .datetime .now (datetime .timezone .utc ).isoformat ()
115116 contents = dict (
116117 _metadata = dict (
117- # 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 (),
118+ datetime = utcnow ,
122119 title = "NeXus NXDL vocabulary." ,
123120 subtitle = "Anchors for all NeXus fields, groups, "
124121 "attributes, and links." ,
You can’t perform that action at this time.
0 commit comments