--compact reset time ignores configured timezone and displays UTC on v4.0.0

Author: corydaliCreated Sep 20, 2026Updated Sep 20, 2026

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 PM

Running:

powershell
claude-monitor --timezone Asia/Tokyo --once --compact

produces:

claude 65.0% | 498.4K/min | reset 11:00 | 7d 62.0% | pace=slow-down | $27.64

The official snapshot contains:

json
"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:00

Expected behavior

With:

powershell
--timezone Asia/Tokyo

the human-readable compact output should use the configured display timezone as well:

reset 20:00

Possible cause

In v4.0.0, format_compact() appears to extract the hour directly from the ISO timestamp:

python
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