Skip to content

fix: embed IANA timezone database for Windows support - #19

Merged
wesm merged 1 commit into
mainfrom
windows-issues
Feb 24, 2026
Merged

fix: embed IANA timezone database for Windows support#19
wesm merged 1 commit into
mainfrom
windows-issues

Conversation

@wesm

@wesm wesm commented Feb 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Import time/tzdata in cmd/agentsview/main.go to embed the IANA timezone database in the binary (~450KB)
  • time.LoadLocation fails on Windows release builds (built with -trimpath) for any non-UTC timezone, breaking all analytics endpoints
  • Add non-UTC timezone test case (America/New_York) to catch regressions

Closes #13

Test plan

  • All Go tests pass (CGO_ENABLED=1 go test -tags fts5 ./...)
  • NonUTCTimezone test exercises America/New_York through the analytics handler
  • Windows CI already in test matrix (windows-latest)

🤖 Generated with Claude Code

Import time/tzdata in cmd/agentsview/main.go to embed the IANA
timezone database in the binary. Fixes time.LoadLocation failing
on Windows release builds (built with -trimpath) for any non-UTC
timezone, which broke all analytics endpoints.

Add non-UTC timezone test case to catch regressions.

Closes #13

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@roborev-ci

roborev-ci Bot commented Feb 24, 2026

Copy link
Copy Markdown

roborev: Combined Review (ec329f4)

Verdict: All agents agree the code is clean; no medium, high, or critical severity issues were found.


Synthesized from 4 reviews (agents: codex, gemini | types: default, security)

@wesm
wesm merged commit b8ae7c8 into main Feb 24, 2026
6 checks passed
cursor Bot referenced this pull request in diazMelgarejo/periscope Jun 1, 2026
## Summary

- Import `time/tzdata` in `cmd/agentsview/main.go` to embed the IANA
timezone database in the binary (~450KB)
- `time.LoadLocation` fails on Windows release builds (built with
`-trimpath`) for any non-UTC timezone, breaking all analytics endpoints
- Add non-UTC timezone test case (`America/New_York`) to catch
regressions

Closes #13

## Test plan
- [x] All Go tests pass (`CGO_ENABLED=1 go test -tags fts5 ./...`)
- [x] `NonUTCTimezone` test exercises `America/New_York` through the
analytics handler
- [x] Windows CI already in test matrix (`windows-latest`)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@wesm
wesm deleted the windows-issues branch June 25, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Analytics dashboard broken on Windows for non-UTC timezones

1 participant