Skip to content

Preserve timezone in calendar range queries - #248

Open
domonnss wants to merge 1 commit into
traggo:masterfrom
domonnss:fix/calendar-range-timezone
Open

Preserve timezone in calendar range queries#248
domonnss wants to merge 1 commit into
traggo:masterfrom
domonnss:fix/calendar-range-timezone

Conversation

@domonnss

Copy link
Copy Markdown

Summary

  • format FullCalendar range boundaries before refetching
  • preserve the browser's local timezone offset instead of letting Moment serialize to UTC
  • prevent the last timezone-offset hours of calendar views from being omitted (for example, Sunday after 16:00 in UTC+8)

Fixes #189.

Testing

  • CI=true npm test -- --watchAll=false
  • NODE_OPTIONS=--openssl-legacy-provider npm run build
  • verified the UTC+8 serialization changes from 2026-08-30T16:00:00.000Z to 2026-08-31T00:00:00+08:00

Format FullCalendar range boundaries before refetching so Moment does not serialize them as UTC. This prevents the final timezone-offset hours of a view from being omitted. Fixes traggo#189.
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.

The activities of some tags can not displayed correctly on the calendar page with 'Day' or '5 Day' model

1 participant