Replace deprecated chrono::TimeZone::timestamp for timestamp_opt in examples

This commit is contained in:
Felicio Mununga 2022-12-01 11:42:05 +01:00 committed by GitHub
parent 18436dfc21
commit ff5079ba73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,6 @@ impl Chat2Message {
}
pub fn timestamp(&self) -> DateTime<Utc> {
Utc.timestamp(self.timestamp as i64, 0)
Utc.timestamp_opt(self.timestamp as i64, 0)
}
}