Skip to content
Snippets Groups Projects
Commit 1d2eacf4 authored by Zachary Sherman's avatar Zachary Sherman
Browse files

FIX: Use timezone.utc instead of datetime.UTC

parent 5445f79b
No related tags found
No related merge requests found
Pipeline #177 failed
......@@ -983,8 +983,8 @@ class Dataset:
self.missionName = "MUSTEREX"
# .utcnow() should not be used in general, but it is ok if you just need the timetuple.
self.dateOfCollection = datetime.datetime.now(datetime.UTC).timetuple()[:3]
self.dateOfRevision = datetime.datetime.now(datetime.UTC).timetuple()[:3]
self.dateOfCollection = datetime.datetime.now(datetime.timezone.utc).timetuple()[:3]
self.dateOfRevision = datetime.datetime.now(datetime.timezone.utc).timetuple()[:3]
self.dataIntervalCode = [0.0]
self.independentVariable = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment