ipraba / EPCalendarPicker

Colourful calendar for iOS written in Swift
MIT License
347 stars 73 forks source link

Fix Russian calendar (if first day Monday ) #13

Open TAIIOK opened 8 years ago

FWEugene commented 8 years ago

This one is break Calendar. I think this one is wrong

if (firstDayOfMonth.weekday() == 1){ totalNumber += 7 }

This just added additional 7 days to the calendar if it starts from Monday. So we have numberOfDayInMoth + 7

Kireyin commented 8 years ago

Working well \o/, thanks (I was missing the part in cellForItemAtIndexPath to make it work)

Note - firstWeekday (weekday == 1) is not always Monday ;)