mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-29 10:02:43 +00:00
Monotone-Parent: 2cafdbe57b649f3842f8bc101e3a2eb5ff10af5c
Monotone-Revision: 113f81e1676d886a71b93cdd6b7aff23ada6b5e4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-11-08T18:36:52 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -305,6 +305,14 @@
|
||||
rp->FirstDateTime = [moduloDate asMinutesSince1601];
|
||||
|
||||
byMonthDay = [[self byMonthDay] objectAtIndex: 0];
|
||||
if (!byMonthDay && (freq == iCalRecurrenceFrequenceYearly))
|
||||
{
|
||||
byMonthDay = [NSString stringWithFormat: @"%d", [startDate dayOfMonth]];
|
||||
[self warnWithFormat: @"no month day specified in yearly"
|
||||
@" recurrence: we deduce it from the start date: %@",
|
||||
byMonthDay];
|
||||
}
|
||||
|
||||
if (byMonthDay)
|
||||
{
|
||||
if ([byMonthDay intValue] < 0)
|
||||
@@ -325,11 +333,14 @@
|
||||
{
|
||||
rp->PatternType = PatternType_MonthNth;
|
||||
byDayMask = [self byDayMask];
|
||||
days = [byDayMask weekDayOccurrences];
|
||||
mask = 0;
|
||||
for (count = 0; count < 7; count++)
|
||||
if (days[0][count])
|
||||
mask |= 1 << count;
|
||||
days = [byDayMask weekDayOccurrences];
|
||||
if (days)
|
||||
{
|
||||
for (count = 0; count < 7; count++)
|
||||
if (days[0][count])
|
||||
mask |= 1 << count;
|
||||
}
|
||||
if (mask)
|
||||
{
|
||||
rp->PatternTypeSpecific.MonthRecurrencePattern.WeekRecurrencePattern = mask;
|
||||
|
||||
Reference in New Issue
Block a user