fix(server): resolve comparison periods in timezone - #51
Conversation
There was a problem hiding this comment.
💡 Codex Review
Line 30 in 6dca05e
When the requested timezone's calendar date differs from UTC, start represents the local date but now.getUTCDay() represents the UTC date, shifting both week and lastWeek by one day. For example, at 2026-08-03T00:30Z in America/Los_Angeles, the local date is Sunday August 2 but this computes the week start as Sunday August 2 rather than Monday July 27. Derive the weekday from the timezone-normalized start instead.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Fixed in |
Summary
Breaking changes
None.
Related to #39.