DateTime::from_utc isn't being merged in parsers
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
3935d68d7e
commit
307a888a0b
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue