Update deprecated chrono::east call to east_opt
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
9b7d3fd9f9
commit
d0570afeaf
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ impl Room {
|
|||
if self.subject.is_none() {
|
||||
let subject = String::from("");
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue