mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-02 14:03:12 +00:00
Replace deprecated chrono::TimeZone::timestamp for timestamp_opt in examples
This commit is contained in:
parent
18436dfc21
commit
ff5079ba73
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user