Update dependencies

This commit is contained in:
2023-01-26 12:57:21 +01:00
parent 509824a926
commit e12f371340
4 changed files with 291 additions and 163 deletions

View File

@@ -33,7 +33,7 @@ impl From<DbChat> for ChatInfo<Utc> {
// Convert timestamps to datetimes
.map(|timestamps| {
timestamps
.map(|timestamp| NaiveDateTime::from_timestamp(timestamp, 0))
.map(|timestamp| NaiveDateTime::from_timestamp_opt(timestamp, 0).unwrap())
.map(|date_time| DateTime::<Utc>::from_utc(date_time, Utc))
})
// Join datetimes into Appointment
@@ -41,7 +41,7 @@ impl From<DbChat> for ChatInfo<Utc> {
let last_reminder = db_chat
.last_reminder
.map(|timestamp| NaiveDateTime::from_timestamp(timestamp, 0))
.map(|timestamp| NaiveDateTime::from_timestamp_opt(timestamp, 0).unwrap())
.map(|date_time| DateTime::<Utc>::from_utc(date_time, Utc));
let locale = db_chat.locale.unwrap_or("de".into());