use unwrap_or_default if timestamp conversion fails
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
694986db29
commit
2ca357e44c
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ impl KeyValueDatabaseEngine for Arc<Engine> {
|
|||
format_args!(
|
||||
"#{} {}: {} bytes, {} files\n",
|
||||
info.backup_id,
|
||||
DateTime::<Utc>::from_timestamp(info.timestamp, 0).unwrap().to_rfc2822(),
|
||||
DateTime::<Utc>::from_timestamp(info.timestamp, 0).unwrap_or_default().to_rfc2822(),
|
||||
info.size,
|
||||
info.num_files,
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue