[AMOS commit] MDL-57658 calendar: Fix rrulemanager and unit tests Committed into Git: 2017-01-19 07:22 UTC

[AMOS commit] MDL-57658 calendar: Fix rrulemanager and unit tests Committed into Git: 2017-01-19 07:22 UTC

by AMOS bot -
Number of replies: 0
Author: Jun Pataleta
MDL-57658 calendar: Fix rrulemanager and unit tests
Issues fixed:
* Additional rule validations.
* Rewrote recurrence logic.
* Additional unit tests, especially from the examples in the RFC.
* The date format "YmdThis" results into an incorrect date for the
"UNTIL" parameter. The literal "T" should be escaped, and a literal
"Z" is also needed at the end of the format string to indicate UTC.
* Implemented handling of negative modifier values for BYxxx rules.
* Implemented handling of BYWEEKNO, BYYEARDAY, BYSETPOS, BYHOUR,
BYMINUTE, BYSECOND rules.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=e0a41273a650af72db6fb64ec09d655ffb2ffe1f
http://github.com/moodle/moodle/commit/e0a41273a650af72db6fb64ec09d655ffb2ffe1f

+ 3.1 en [errorhasuntilandcount,core_calendar]
+ 3.1 en [errorinvalidbydaysuffix,core_calendar]
+ 3.1 en [errorinvalidbydayprefix,core_calendar]
+ 3.1 en [errorinvalidbyhour,core_calendar]
+ 3.1 en [errorinvalidinterval,core_calendar]
+ 3.1 en [errorinvalidbyminute,core_calendar]
+ 3.1 en [errorinvalidbymonth,core_calendar]
+ 3.1 en [errorinvalidbymonthday,core_calendar]
+ 3.1 en [errorinvalidbysetpos,core_calendar]
+ 3.1 en [errorinvalidbyweekno,core_calendar]
+ 3.1 en [errorinvalidbyyearday,core_calendar]
+ 3.1 en [errorinvalidbysecond,core_calendar]
+ 3.1 en [errormustbeusedwithotherbyrule,core_calendar]
+ 3.1 en [errornonyearlyfreqwithbyweekno,core_calendar]