mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 12:25:23 +00:00
See ChangeLog
Monotone-Parent: 749811709acadced020a19e4ce7c00f07ac86e77 Monotone-Revision: 635c9e7117554059bb6df5357a9f71f448867b55 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-08-31T20:31:33
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2012-08-31 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* iCalWeeklyRecurrenceCalculator.m
|
||||
(-recurrenceRangesWithinCalendarDateRange:): the week counter must
|
||||
start at 0 when there's no day mask.
|
||||
|
||||
2012-08-22 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* iCalWeeklyRecurrenceCalculator.m
|
||||
|
||||
@@ -119,10 +119,10 @@
|
||||
[currentStartDate autorelease];
|
||||
ranges = [NSMutableArray array];
|
||||
count = 0;
|
||||
i = [currentStartDate dayOfWeek]; // Set the first day of the week as Sunday and ignore WKST
|
||||
|
||||
if (dayMask == nil)
|
||||
{
|
||||
i = 0;
|
||||
while ([currentStartDate compare: endDate] == NSOrderedAscending ||
|
||||
[currentStartDate compare: endDate] == NSOrderedSame)
|
||||
{
|
||||
@@ -147,6 +147,7 @@
|
||||
{
|
||||
NGCalendarDateRange *r;
|
||||
|
||||
i = [currentStartDate dayOfWeek]; // Set the first day of the week as Sunday and ignore WKST
|
||||
while ([currentStartDate compare: endDate] == NSOrderedAscending ||
|
||||
[currentStartDate compare: endDate] == NSOrderedSame)
|
||||
{
|
||||
@@ -175,7 +176,7 @@
|
||||
|
||||
if (isRecurrence)
|
||||
{
|
||||
count++;
|
||||
count++;
|
||||
if (repeatCount > 0 && count > repeatCount)
|
||||
break;
|
||||
currentEndDate = [currentStartDate addTimeInterval: [firstRange duration]];
|
||||
|
||||
Reference in New Issue
Block a user