diff --git a/src/room.rs b/src/room.rs index 0d6b870..3c2d74a 100644 --- a/src/room.rs +++ b/src/room.rs @@ -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)); }