You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for ISO8601 calendar and others (#677)
The list of valid keys did not include the ISO8601 calendar, which
meant that code running on Linux that used it would fail. Fix this
by adding the kCFISO8601Calendar and others into the list of known
constants valid for calendars, and add tests for the Gregorian
calendar, as well as for creating all other calendars.
Issue: SR-2551
if (identifier!=kCFGregorianCalendar&&identifier!=kCFBuddhistCalendar&&identifier!=kCFJapaneseCalendar&&identifier!=kCFIslamicCalendar&&identifier!=kCFIslamicCivilCalendar&&identifier!=kCFHebrewCalendar&&identifier!=kCFChineseCalendar) {
239
+
if (identifier!=kCFGregorianCalendar&&identifier!=kCFBuddhistCalendar&&identifier!=kCFJapaneseCalendar&&identifier!=kCFIslamicCalendar&&identifier!=kCFIslamicCivilCalendar&&identifier!=kCFHebrewCalendar&&identifier!=kCFRepublicOfChinaCalendar&&identifier!=kCFPersianCalendar&&identifier!=kCFCalendarIdentifierCoptic&&identifier!=kCFCalendarIdentifierEthiopicAmeteMihret&&identifier!=kCFCalendarIdentifierEthiopicAmeteAlem&&identifier!=kCFChineseCalendar&&identifier!=kCFISO8601Calendar&&identifier!=kCFIslamicTabularCalendar&&identifier!=kCFIslamicUmmAlQuraCalendar) {
240
240
if (CFEqual(kCFGregorianCalendar, identifier)) identifier=kCFGregorianCalendar;
0 commit comments