Skip to content
Snippets Groups Projects

FIX: Update datetimeutcnow to new syntax to fix depreciation warning.

Open Zachary Sherman requested to merge zssherman/icartt_pypackage:update_datetime into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -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.utcnow().timetuple()[:3]
self.dateOfRevision = datetime.datetime.utcnow().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
Loading