Skip to content
Snippets Groups Projects
Commit 97b65ddd authored by Hollweger, Simon Benjamin's avatar Hollweger, Simon Benjamin
Browse files

(SH) MAINT changed datetime.UTC to date.timezone.utc for back compatibility

parent e954b12d
No related branches found
No related tags found
No related merge requests found
...@@ -3072,7 +3072,7 @@ class SampleProject(LoggerMixin): ...@@ -3072,7 +3072,7 @@ class SampleProject(LoggerMixin):
Current implementation: use uct-date + time up to microseconds Current implementation: use uct-date + time up to microseconds
this is not strictly speaking unique, but it should be unique enough ;) this is not strictly speaking unique, but it should be unique enough ;)
""" """
t_utc_string = datetime.datetime.now(datetime.UTC).strftime('%Y-%m-%d_%H-%M-%S-%f') t_utc_string = datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%d_%H-%M-%S-%f')
return t_utc_string return t_utc_string
def _getSampleProjectID(self, file_path): def _getSampleProjectID(self, file_path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment