diff --git a/src/room.rs b/src/room.rs index 9b673cb..84a7a46 100644 --- a/src/room.rs +++ b/src/room.rs @@ -19,7 +19,7 @@ use crate::error::Error; use std::collections::HashMap; use std::iter::IntoIterator; -use chrono; +use chrono::{FixedOffset, Utc}; use log::debug; use xmpp_parsers::{ date::DateTime, @@ -129,7 +129,7 @@ impl Room { if self.subject.is_none() { let subject = String::from(""); let setter = new_occupant; - let stamp = DateTime::from_utc(chrono::Utc::now()); + let stamp = DateTime(Utc::now().with_timezone(&FixedOffset::east(0))); self.subject = Some((subject, setter, stamp)); }