diff options
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/formats.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/output/formats.rs b/src/output/formats.rs index a608eab..10d84fc 100644 --- a/src/output/formats.rs +++ b/src/output/formats.rs @@ -4,6 +4,8 @@ use std::fmt::Write; use super::super::guilds; use super::{FightOutcome, LogResult}; +use chrono::Local; + /// An output format pub trait Format: Sync + Send { /// Format a single log result @@ -30,7 +32,9 @@ impl Format for HumanReadable { result, "{}: {} - {}: {} {}", "Date".green(), - item.time.format("%Y-%m-%d %H:%M:%S %a"), + item.time + .with_timezone(&Local) + .format("%Y-%m-%d %H:%M:%S %a"), "Boss".green(), item.boss_name, outcome, |