Revert "Fix: Use correct timezone for dirname"
This reverts commit a9b6ce7ef726e1e0ef7953560aafdab4252f209f.
This commit is contained in:
parent
9c0c919991
commit
55b4c20865
@ -24,7 +24,7 @@ class DataCollector:
|
||||
self.metadata = metadata
|
||||
self.path = os.path.abspath(os.path.expanduser(data_path))
|
||||
if dirname is None:
|
||||
self.dirname = sanitize_filename(datetime.datetime.now().strftime("%Y-%m-%d_%H-%M") + "_" + self.name)
|
||||
self.dirname = sanitize_filename(datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%d_%H-%M") + "_" + self.name)
|
||||
else:
|
||||
self.dirname = sanitize_filename(dirname)
|
||||
self.dirpath = os.path.join(self.path, self.dirname)
|
||||
|
Loading…
x
Reference in New Issue
Block a user