From 55b4c20865b276b2758c26bf5b0da8d7bbdd09c1 Mon Sep 17 00:00:00 2001 From: CPD Date: Wed, 12 Mar 2025 16:44:45 +0100 Subject: [PATCH] Revert "Fix: Use correct timezone for dirname" This reverts commit a9b6ce7ef726e1e0ef7953560aafdab4252f209f. --- cpdctrl/utility/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpdctrl/utility/data.py b/cpdctrl/utility/data.py index 2815cc2..4bc68a6 100644 --- a/cpdctrl/utility/data.py +++ b/cpdctrl/utility/data.py @@ -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)