ZBJCalendar icon indicating copy to clipboard operation
ZBJCalendar copied to clipboard

Changed calendar to start on firstDayOfWeek instead of hardcoding Sunday

Open angelolloqui opened this issue 8 years ago • 1 comments

Current version of calendar starts in Sunday, and it is hardcoded. In Europe, calendars start on Monday, and actually the firstWeekday indicates the first day of the user's calendar.

The current PR includes code that modifies the way the indexPaths and dates are calculated to use the calendar configuration. Besides, I have added the + (void)setGregorianCalendar:(NSCalendar *)gregorianCalendar; to allow modification of this or other properties (required for Swift)

angelolloqui avatar Feb 20 '17 13:02 angelolloqui

Very useful patch, thanks! You need to publish your fork on cocoapods...

AlexeyPoldeo avatar Oct 21 '17 05:10 AlexeyPoldeo