Skip to content

Preserve timezone in calendar range queries - #248

Merged
jmattheis merged 1 commit into
traggo:masterfrom
domonnss:fix/calendar-range-timezone
Sep 27, 2026
Merged

jmattheis merged 1 commit into
traggo:masterfrom
domonnss:fix/calendar-range-timezone

Conversation

@domonnss

Copy link
Copy Markdown
Contributor

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.
@domonnss

Copy link
Copy Markdown
Contributor Author

@ElnuDev @Skeen @jmattheis plz review this pr

@ElnuDev

ElnuDev commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Please don't ping random people, my only contribution is a docs fix

@jmattheis jmattheis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jmattheis
jmattheis merged commit 8ca9bb6 into traggo:master Sep 27, 2026
1 check 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.

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

3 participants