MDCalendar icon indicating copy to clipboard operation
MDCalendar copied to clipboard

Calendar week always starts from Sunday

Open ShadeApps opened this issue 10 years ago • 0 comments

First of all, thanks for an amazing control!

After playing out a little with it, I found that you haven't implemented the case when a week starts from Monday. Looking int the array of weekdays it clearly looks so.

I've changed the array to start from Monday and inside the "NSDate+MDCalendar.h" file I've also changed all NSCalendar declarations to look like this:

NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; calendar.locale = [NSLocale currentLocale];

However, the calendar still doesn't technically start from Monday. Any other steps I should implement?

Thank you.

ShadeApps avatar Mar 13 '15 23:03 ShadeApps