Update deprecated chrono::east call to east_opt

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-12-17 14:12:50 +01:00
parent 9b7d3fd9f9
commit d0570afeaf
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -208,7 +208,7 @@ impl Room {
if self.subject.is_none() { if self.subject.is_none() {
let subject = String::from(""); let subject = String::from("");
let setter = occupant; let setter = occupant;
let stamp = DateTime(Utc::now().with_timezone(&FixedOffset::east(0))); let stamp = DateTime(Utc::now().with_timezone(&FixedOffset::east_opt(0).unwrap()));
self.subject = Some((subject, setter, stamp)); self.subject = Some((subject, setter, stamp));
} }