Skip to content

Conversation

@KristjanESPERANTO
Copy link
Collaborator

Remove the "Recurring event per timezone" test that manipulated Date.prototype.getTimezoneOffset to simulate 24 different timezones for testing all-day recurring events.

Reasons for removal:

  1. The test approach is incompatible with node-ical 0.22.0's Intl-based timezone handling (which replaced moment-timezone). Manipulating Date.prototype.getTimezoneOffset no longer affects Intl.DateTimeFormat, which reads the system timezone directly.

  2. node-ical 0.22.0 handles all-day events (VALUE=DATE) correctly by preserving the calendar date without timezone conversions, making cross-timezone testing unnecessary. The library includes comprehensive tests for this behavior, particularly "keeps whole-day recurrence across DST" in test/advanced.test.js.

  3. The existing "Recurring event" test already verifies that recurring events from the same ICS file are displayed correctly, so a simplified version of "Recurring event per timezone" is not necessary.

The old test attempted to work around timezone conversion issues in node-ical 0.21.0 that are now properly resolved upstream.

Closes #3928

Remove the "Recurring event per timezone" test that manipulated
Date.prototype.getTimezoneOffset to simulate 24 different timezones
for testing all-day recurring events.

Reasons for removal:
1. The test approach is incompatible with node-ical 0.22.0's
   Intl-based timezone handling (which replaced moment-timezone).
   Manipulating Date.prototype.getTimezoneOffset no longer affects
   Intl.DateTimeFormat, which reads the system timezone directly.

2. node-ical 0.22.0 handles all-day events (VALUE=DATE) correctly
   by preserving the calendar date without timezone conversions,
   making cross-timezone testing unnecessary. The library includes
   comprehensive tests for this behavior, particularly "keeps
   whole-day recurrence across DST" in test/advanced.test.js.

3. The existing "Recurring event" test already verifies that
   recurring events from the same ICS file are displayed correctly,
   so a simplified version of this test is not necessary.

The old test attempted to work around timezone conversion issues
in node-ical 0.21.0 that are now properly resolved upstream.

Closes MagicMirrorOrg#3928
@khassel khassel merged commit c9eecdd into MagicMirrorOrg:develop Oct 23, 2025
9 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.

2 participants