diff --git a/src/probe.rs b/src/probe.rs index ae0b82b..da2c7db 100644 --- a/src/probe.rs +++ b/src/probe.rs @@ -1,6 +1,6 @@ use std::fmt; -use chrono::{DateTime, Utc}; +use chrono::{DateTime, Local, Utc}; mod eniro; mod hitta; @@ -56,10 +56,12 @@ pub struct Comment { impl fmt::Display for Comment { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + let datetime = self.datetime.with_timezone(&Local); + write!( f, "{}: {} - {}", - self.datetime.format("%Y-%m-%d %H:%M:%S"), + datetime.format("%Y-%m-%d %H:%M:%S"), self.title, self.message )