See ChangeLog
Monotone-Parent: a7388b1eb7856d57df84b1de0be0ed020317178c Monotone-Revision: 1cdbd08ce823952005537aad8577c0f54c23c532 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2009-10-20T18:22:53 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
6927574d18
commit
1008505fb5
|
@ -5,7 +5,11 @@
|
|||
-davCreateCollection:inContext:
|
||||
We check, prior to creating the resource, if
|
||||
where we create it is a supported target.
|
||||
|
||||
* SOPE/NGCards/iCalTimeZonePeriod.m
|
||||
-_occurenceForDate:byRRule:
|
||||
We correctly compute the number of shifting days
|
||||
during DST changes.
|
||||
|
||||
2009-10-19 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/NSCalendarDate+SOGo.m: lower the values of
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* iCalDateTime.h - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2006 Inverse inc.
|
||||
* Copyright (C) 2006-2009 Inverse inc.
|
||||
*
|
||||
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
*
|
||||
|
|
|
@ -110,6 +110,7 @@
|
|||
dayOfWeek = [self dayOfWeekFromRruleDay: [rrule byDayMask]];
|
||||
pos = [[byDay substringToIndex: 2] intValue];
|
||||
if (!pos)
|
||||
/* if byday = "SU", instead of "1SU"... */
|
||||
pos = 1;
|
||||
|
||||
tmpDate = [NSCalendarDate dateWithYear: [refDate yearOfCommonEra]
|
||||
|
@ -119,9 +120,14 @@
|
|||
tmpDate = [tmpDate addYear: 0 month: ((pos > 0) ? 0 : 1)
|
||||
day: 0 hour: 0 minute: 0
|
||||
second: -[self _secondsOfOffset: @"tzoffsetfrom"]];
|
||||
|
||||
dateDayOfWeek = [tmpDate dayOfWeek];
|
||||
// #warning FIXME
|
||||
offset = (dayOfWeek - dateDayOfWeek) + ((pos -1 ) * 7);
|
||||
|
||||
if (pos > 0)
|
||||
offset = (dayOfWeek - dateDayOfWeek) + ((pos - 1) * 7);
|
||||
else
|
||||
offset = (dateDayOfWeek - dayOfWeek) + (pos * 7);
|
||||
|
||||
tmpDate = [tmpDate addYear: 0 month: 0 day: offset
|
||||
hour: 0 minute: 0 second: 0];
|
||||
|
||||
|
|
Loading…
Reference in New Issue