codeburn/mac/Sources/CodeBurnMenubar/Views
iamtoruk 68c6f2c710 Fix timezone handling: menubar UTC bugs, --timezone flag, DST-safe dates
Three fixes for issue #184:

1. Menubar Swift code used UTC instead of local timezone in two places:
   computeHistoryStats hardcoded TimeZone("UTC") and
   effectiveTokensInLast7Days used ISO8601DateFormatter (UTC default).
   Both now use .current to match CLI-produced local date keys.

2. Add --timezone flag and CODEBURN_TZ env var to override the system
   timezone for all date grouping. Sets process.env.TZ before any Date
   operations so all existing local-timezone code works unchanged.

3. Replace MS_PER_DAY arithmetic with Date constructor day-of-month
   math for yesterday/backfill computations. Subtracting 86400000ms
   from midnight skips a day on DST spring-forward (23-hour day).

Fixes #184
2026-04-30 17:33:02 -07:00
..
ActivitySection.swift feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
AgentTabStrip.swift Add Droid CLI provider 2026-04-28 20:16:45 +02:00
FindingsSection.swift Fix timezone handling: menubar UTC bugs, --timezone flag, DST-safe dates 2026-04-30 17:33:02 -07:00
HeatmapSection.swift Revert "Fix trend chart to show days matching selected period" 2026-04-25 01:56:51 +02:00
HeroSection.swift Add new providers, fix menubar tabs, accent color picker (#167) 2026-04-27 19:46:30 -07:00
MenuBarContent.swift Fix menubar refresh stuck after first load (#179) 2026-04-30 09:22:38 -07:00
ModelsSection.swift feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
PeriodSegmentedControl.swift feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
SectionCaption.swift feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
SparklineView.swift feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00