Skip to content

Commit

Permalink
fix(archive): timestamp now only has microseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
graelo committed Aug 29, 2023
1 parent 43c958a commit 707e192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/management/archive/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ pub fn new_backup_filepath<P>(dirpath: P) -> PathBuf
where
P: AsRef<Path>,
{
let timestamp_frag = Local::now().format("%Y%m%dT%H%M%S%.f").to_string();
let timestamp_frag = Local::now().format("%Y%m%dT%H%M%S%.6f").to_string();
let backup_filename = format!("backup-{timestamp_frag}.tar.zst");
dirpath.as_ref().join(backup_filename)
}
Expand Down

0 comments on commit 707e192

Please sign in to comment.