From 695fe467f55780ee32f770b318496b0a1fcd6c4b Mon Sep 17 00:00:00 2001 From: Austin Macdonald Date: Tue, 28 May 2024 09:31:34 -0500 Subject: [PATCH] Periods look cleaner than hyphens for iso8601 Fixes: #32 --- src/duct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duct.py b/src/duct.py index 493480b6..d31a7761 100755 --- a/src/duct.py +++ b/src/duct.py @@ -333,7 +333,7 @@ def format_output_prefix(output_prefix_template: str) -> str: f_kwargs = { # 'pure' iso 8601 does not make good filenames "datetime": datenow.isoformat(), - "datetime_filesafe": datenow.strftime("%Y-%m-%dT%H-%M-%S"), + "datetime_filesafe": datenow.strftime("%Y.%m.%dT%H.%M.%S"), "pid": os.getpid(), } return output_prefix_template.format(**f_kwargs)