-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix timezone issues when using rrule #329
Merged
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d95e0c1
Fix timezone issue when using rrule
50an6xy06r6n e1a3cb5
Add test cases from fmos
50an6xy06r6n 38f70f7
Remove ineffective exception catching in tests
50an6xy06r6n 68e267e
Load timezone data in tests
50an6xy06r6n db12468
Rename test22.ics to test23.ics
50an6xy06r6n 49eb9eb
try to fix Etc/Unknown windows unit test issues.
jens-maus 6924965
more tests
jens-maus 211b4df
ignore on win32 since rrule seems to be broken there.
jens-maus 6233096
fix linter
jens-maus 51a37db
skip rrule.between on windows since it seems to be broken (cf.
jens-maus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
BEGIN:VCALENDAR | ||
BEGIN:VEVENT | ||
TRANSP:OPAQUE | ||
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY | ||
CREATED:20221004T073016Z | ||
LAST-MODIFIED:20221011T063437Z | ||
DTSTAMP:20221011T063437Z | ||
DTSTART;TZID="(GMT +01:00)":20221004T140000 | ||
DTEND;TZID="(GMT +01:00)":20221004T150000 | ||
SUMMARY:Music School | ||
CLASS:PUBLIC | ||
UID:0000021 | ||
X-MOZ-SNOOZE-TIME:20221004T113000Z | ||
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20221014T203413Z | ||
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20221014T203413Z | ||
X-MICROSOFT-CDO-APPT-SEQUENCE:0 | ||
X-MICROSOFT-CDO-OWNERAPPTID:-1 | ||
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE | ||
RRULE:FREQ=WEEKLY;UNTIL=20221201T020000;BYDAY=TU | ||
END:VEVENT | ||
END:VCALENDAR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
BEGIN:VCALENDAR | ||
VERSION:2.0 | ||
PRODID:Fictitious Recurrence Test Calendar | ||
BEGIN:VEVENT | ||
CREATED:20221018T221500Z | ||
DTSTAMP:20221019T171200Z | ||
UID:000021a | ||
SUMMARY:Party | ||
RRULE:FREQ=YEARLY | ||
DTSTART;TZID=Europe/Berlin:20220714T140000 | ||
DTEND;TZID=Europe/Berlin:20220714T210000 | ||
TRANSP:OPAQUE | ||
SEQUENCE:5 | ||
END:VEVENT | ||
BEGIN:VEVENT | ||
CREATED:20221019T181700Z | ||
DTSTAMP:20221019T191200Z | ||
UID:000021b | ||
SUMMARY:Party next day | ||
RRULE:FREQ=YEARLY | ||
DTSTART;TZID=Etc/GMT-2:20220715T140000 | ||
DTEND;TZID=Etc/GMT-2:20220715T210000 | ||
TRANSP:OPAQUE | ||
SEQUENCE:5 | ||
END:VEVENT | ||
END:VCALENDAR |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should such an exception not better crash the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh this is some weird issue with vows.js where it doesn't properly catch thrown exceptions and won't tell you what the issue actually is (you get a bunch of "callback not fired" messages instead). I found this snippet online to try to fix it but it doesn't work, and I apparently forgot to take it back out. Here's what it outputs when there's a parsing error in the test:
On that note, vows seems hopelessly outdated. It still uses
util.print
, which was EOLed in Node 12.0.0. I had to make some changes in vow itself to get any useful output on errors.