-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Recurring and floating events #97
Recurring and floating events #97
Conversation
Codecov Report
@@ Coverage Diff @@
## master #97 +/- ##
==========================================
+ Coverage 90.07% 91.22% +1.14%
==========================================
Files 4 4
Lines 383 376 -7
Branches 98 98
==========================================
- Hits 345 343 -2
+ Misses 17 14 -3
+ Partials 21 19 -2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@eigenmannmartin This PR fixes the issues I noticed with #110 (same as #102, as you pointed out). However, with this code my test
Apple Calendar is pulling in the entry for Stepping through the debugger, looks like the timezone conversion is wrong/missing: From
At the indicated line above:
I don't have a good grasp on where the code needs to be updated to fix this test, however. Hopefully it jumps out at you. |
928270a
to
e66366b
Compare
a11bb1d
to
fa2c69e
Compare
fa2c69e
to
53817cc
Compare
@mbafford I have shamelessly included your test in this mr. Great catch! |
Recurring and floating events
Ical format does not have a 'default' timezone for the calendar but instead 'floating' events. Events can have a date, datetime or a datetime with timezone information as start and end. This is pr implements this functionality. This pr also fixes some recurring issues with custom defined timezones where events will be unfolded to the wrong time it the recurrence passes the timezone border.
The api now alloes three new parameters:
tzinfo
force output to be converted to this timezonesort
sorts the events according to its start date.strict
if set to true will output dates, datetimes and datetimes with timezones as specified in the ical. If set to false (or unset) will behave the same as before for backward comparability.Missing right now is the documentation but I wanted to have someone else to see this first and verify that this version works as expected.