Skip to content

Commit

Permalink
Use hyphen to separate date & time
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed May 23, 2024
1 parent 61a1848 commit a847a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a847a9b

Please sign in to comment.