(web) Fix "last day of the month" repeat rule

This commit is contained in:
Francis Lachapelle
2017-08-29 14:29:11 -04:00
parent 5e5e52e3f1
commit 491e090fb4
3 changed files with 27 additions and 19 deletions

View File

@@ -145,22 +145,6 @@
return text;
}
- (NSString *) idForWeekDay
{
static NSArray *shortWeekDaysList = nil;
NSString *id;
if (!shortWeekDaysList)
{
shortWeekDaysList = [locale objectForKey: NSShortWeekDayNameArray];
[shortWeekDaysList retain];
}
id = [NSString stringWithFormat: @"weekDay%i", (int)[shortWeekDaysList indexOfObject: item]];
return id;
}
- (NSString *) labelForWeekDay
{
return item;
@@ -197,7 +181,7 @@
i = [[self monthlyDayList] indexOfObject: item];
if (i % 7 != i)
return @"";
return @"relative";
else
return iCalWeekDayString[i];
}