Update dependencies
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user