--compact reset time ignores configured timezone and displays UTC on v4.0.0
Bug
On claude-monitor v4.0.0 on Windows, the Rich TUI correctly displays the official 5-hour reset time in the configured Asia/Tokyo timezone, but --once --compact displays the UTC hour instead.
The official statusline data itself is correct.
Environment
- claude-monitor:
4.0.0 - OS: Windows
- Shell: PowerShell
- Timezone:
Asia/Tokyo - Limit source: Claude Code statusline
- Confidence:
official
Reproduction
The Rich TUI is configured for Asia/Tokyo and shows:
[ custom | asia/tokyo ]
Limit resets at: 8:00 PMRunning:
claude-monitor --timezone Asia/Tokyo --once --compactproduces:
claude 65.0% | 498.4K/min | reset 11:00 | 7d 62.0% | pace=slow-down | $27.64The official snapshot contains:
"five_hour": {
"used_percentage": 66.0,
"resets_at": "2026-09-20T11:00:00+00:00",
"resets_at_epoch": 1789902000,
"source": {
"kind": "statusline"
},
"confidence": "official"
}2026-09-20T11:00:00+00:00 is 20:00 in Asia/Tokyo.
Actual behavior
Rich TUI: 20:00
Compact: 11:00Expected behavior
With:
--timezone Asia/Tokyothe human-readable compact output should use the configured display timezone as well:
reset 20:00Possible cause
In v4.0.0, format_compact() appears to extract the hour directly from the ISO timestamp:
resets_at = five.get("resets_at")
reset_s = resets_at[11:16] if resets_at else "--:--"Since official snapshot timestamps are normalized to UTC, this prints the UTC hour without applying the configured timezone.
There also appears to be no non-UTC timezone regression test for compact reset formatting.
Possibly related to #98 and #220, which were closed as fixed by the v4.0.0 work. #98 specifically says to open a fresh issue if the timezone issue still reproduces after the v4 merge.
Source: Maciek-roboblog/Claude-Code-Usage-Monitor