Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Russian calendar (if first day Monday ) #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix Russian calendar (if first day Monday ) #13

wants to merge 1 commit into from

Conversation

TAIIOK
Copy link

@TAIIOK TAIIOK commented Mar 22, 2016

No description provided.

@FWEugene
Copy link

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
Copy link

Kireyin commented Jun 7, 2016

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants