Update Schedule.php to fix iCal Generation #325
Closed
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.
Updated the
generateIcal()
function.Updated the code that gets the starting date of the course, to use the weekday number of the term start date. This way if the term starts on a day other than Monday, it'll still correctly generate the start day of the course. iCal Export Dates placed wrong #310 Schedule offsets dates by one day #232
Added code that'll generate a single series for a multi-day course (Mon,Web,Fri for example) to simplify calendars (see the iCal specification for RRULE). If any details are different between the different times (different location or times, for example) it'll fallback to the old code that makes separate series for each listed time in the course. Exporting to Google Calendar Creates Separate Series #63