src/backup/datastore.rs: use DateTime<Utc> instead of unix epoch

This commit is contained in:
Dietmar Maurer
2019-02-28 17:03:48 +01:00
parent f13c36c856
commit 541b908ea4
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,8 @@ fn upload_catar(
let datastore = DataStore::lookup_datastore(store)?;
let (mut path, _new) = datastore.create_backup_dir(backup_type, backup_id, backup_time)?;
let (mut path, _new) = datastore.create_backup_dir(
backup_type, backup_id, Utc.timestamp(backup_time, 0))?;
path.push(archive_name);