From a847a9b6ad81a7d073f82e8caf5e697b0020fe50 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Thu, 23 May 2024 10:58:58 -0400 Subject: [PATCH] Use hyphen to separate date & time --- dandi/cli/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandi/cli/command.py b/dandi/cli/command.py index 87a6c618f..e278c6f38 100644 --- a/dandi/cli/command.py +++ b/dandi/cli/command.py @@ -99,7 +99,7 @@ def main(ctx, log_level, pdb=False): logdir = platformdirs.user_log_dir("dandi-cli", "dandi") logfile = os.path.join( - logdir, f"{datetime.now(timezone.utc):%Y.%m.%d.%H.%M.%SZ}-{os.getpid()}.log" + logdir, f"{datetime.now(timezone.utc):%Y.%m.%d-%H.%M.%SZ}-{os.getpid()}.log" ) os.makedirs(logdir, exist_ok=True) handler = logging.FileHandler(logfile, encoding="utf-8")