DateTime::from_utc isn't being merged in parsers

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-09-17 16:31:12 +02:00
parent 3935d68d7e
commit 307a888a0b
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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));
}