Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/gain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down