Skip to content

Fix Russian calendar (if first day Monday )#13

Open
TAIIOK wants to merge 1 commit intoipraba:masterfrom
TAIIOK:master
Open

Fix Russian calendar (if first day Monday )#13
TAIIOK wants to merge 1 commit intoipraba:masterfrom
TAIIOK:master

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