diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/date.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/date.rs b/src/date.rs index a4559e7..ab1c2c8 100644 --- a/src/date.rs +++ b/src/date.rs @@ -4,7 +4,7 @@ use std::ops::Add; use errors::EventError; use chrono; -use chrono::{TimeZone, Duration, Datelike}; +use chrono::{TimeZone, Duration, Datelike, Local}; use chrono::offset::Utc; use chrono_tz::{Tz, UTC}; @@ -63,7 +63,7 @@ impl Date { pub fn format(&self, fmt: &str) -> String { match *self { - Date::Time(t) => t.format(fmt).to_string(), + Date::Time(t) => t.with_timezone(&Local).format(fmt).to_string(), Date::AllDay(d) => d.format(fmt).to_string(), } } |