Skip to content

Commit

Permalink
Windows: fix backup name
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Dec 16, 2024
1 parent d0bee19 commit dcf0fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hg_setup/init_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def init_tui(name, email):

def save_existing_file(path):
now = datetime.now()
path_saved = path.with_name(path.name + f"_{now:%Y-%m-%d_%H:%M:%S}")
path_saved = path.with_name(path.name + f"_{now:%Y-%m-%d_%H-%M-%S}")
os.rename(path, path_saved)


Expand Down

0 comments on commit dcf0fae

Please sign in to comment.