Skip to content

fix: embed IANA timezone database for Windows support#19

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

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

Conversation

@wesm
Copy link
Copy Markdown
Owner

@wesm wesm commented Feb 24, 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

  • 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
Copy link
Copy Markdown

roborev-ci bot commented Feb 24, 2026

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Analytics dashboard broken on Windows for non-UTC timezones

1 participant