chore: update chrono from 0.4.34 to 0.4.37

This commit is contained in:
link2xt
2024-04-03 16:16:24 +00:00
parent ace281ff6c
commit f1c6cd69e9
5 changed files with 11 additions and 12 deletions

View File

@@ -499,7 +499,7 @@ fn get_next_backup_path(
backup_time: i64,
) -> Result<(PathBuf, PathBuf, PathBuf)> {
let folder = PathBuf::from(folder);
let stem = chrono::NaiveDateTime::from_timestamp_opt(backup_time, 0)
let stem = chrono::DateTime::<chrono::Utc>::from_timestamp(backup_time, 0)
.context("can't get next backup path")?
// 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")