diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-03-21 09:12:49 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-03-22 19:18:35 +0200 |
commit | 48139725676fcce89a70897546969623f2474693 (patch) | |
tree | f9c00d2fcd3b7c597fd5062b90ef2279eb9db767 /src/backup_run.rs | |
parent | 4c94c794ec805cf643826973e4f83826a1231e54 (diff) | |
download | obnam2-48139725676fcce89a70897546969623f2474693.tar.gz |
feat! store list of generations in a "client trust root" chunk
Backups made with this version can't be restored with old clients, and
vice version.
Sponsored-by: author
Diffstat (limited to 'src/backup_run.rs')
-rw-r--r-- | src/backup_run.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backup_run.rs b/src/backup_run.rs index b03a7ee..5ceaed3 100644 --- a/src/backup_run.rs +++ b/src/backup_run.rs @@ -406,7 +406,8 @@ impl<'a> BackupRun<'a> { } } -fn current_timestamp() -> String { +/// Current timestamp as an ISO 8601 string. +pub fn current_timestamp() -> String { let now: DateTime<Local> = Local::now(); format!("{}", now.format("%Y-%m-%d %H:%M:%S.%f %z")) } |