codeburn/mac/Sources/CodeBurnMenubar
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
..
Data Reduce CLI timeout from 60s to 20s for faster recovery 2026-04-24 05:53:52 +02:00
Security fix(menubar): force status bar redraw and lift subprocess QoS 2026-04-21 11:50:28 -07:00
Theme Add new providers, fix menubar tabs, accent color picker (#167) 2026-04-27 19:46:30 -07:00
Views Fix timezone handling: menubar UTC bugs, --timezone flag, DST-safe dates 2026-04-30 17:33:02 -07:00
AppStore.swift Fix timezone handling: menubar UTC bugs, --timezone flag, DST-safe dates 2026-04-30 17:33:02 -07:00
CodeBurnApp.swift Fix menubar refresh stuck after first load (#179) 2026-04-30 09:22:38 -07:00
CurrencyState.swift feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00