update dependencies, including iroh to 0.1.1

This commit is contained in:
dignifiedquire
2022-11-23 16:50:03 +01:00
parent 1fd4e8e0ec
commit 415279c450
11 changed files with 1951 additions and 799 deletions

View File

@@ -661,7 +661,8 @@ async fn import_backup(
/// it can be renamed to dest_path. This guarantees that the backup is complete.
fn get_next_backup_path(folder: &Path, backup_time: i64) -> Result<(PathBuf, PathBuf, PathBuf)> {
let folder = PathBuf::from(folder);
let stem = chrono::NaiveDateTime::from_timestamp(backup_time, 0)
let stem = chrono::NaiveDateTime::from_timestamp_opt(backup_time, 0)
.unwrap()
// Don't change this file name format, in `dc_imex_has_backup` we use string comparison to determine which backup is newer:
.format("delta-chat-backup-%Y-%m-%d")
.to_string();