diff --git a/src/gain.rs b/src/gain.rs index 2dce35f1..71b73772 100644 --- a/src/gain.rs +++ b/src/gain.rs @@ -3,6 +3,7 @@ use crate::hook_check; use crate::tracking::{DayStats, MonthStats, Tracker, WeekStats}; use crate::utils::format_tokens; use anyhow::{Context, Result}; +use chrono::Local; use colored::Colorize; use serde::Serialize; use std::io::IsTerminal; @@ -227,7 +228,7 @@ pub fn run( println!("{}", styled("Recent Commands", true)); // added: styled header println!("──────────────────────────────────────────────────────────"); for rec in recent { - let time = rec.timestamp.format("%m-%d %H:%M"); + let time = rec.timestamp.with_timezone(&Local).format("%m-%d %H:%M"); let cmd_short = if rec.rtk_cmd.len() > 25 { format!("{}...", &rec.rtk_cmd[..22]) } else {