mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-13 06:09:43 +00:00
Monotone-Parent: 390c5899c8e498b7d320dc7528a7ffbf31204b43
Monotone-Revision: a7332f5374e76477d1df1d08f12d1fc7f06af1a7 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-03-09T17:06:40 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2010-03-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalTimeZonePeriod.m (_occurenceForDate:byRRule:): fixed
|
||||
computing of timezone switch dates, which were offset by one week
|
||||
too early.
|
||||
|
||||
2010-01-06 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalDateTime.m (-setTimeZone:): don't modify the date in case of
|
||||
|
||||
@@ -105,6 +105,8 @@
|
||||
dateTime];
|
||||
}
|
||||
|
||||
/* This method returns the date corresponding for to the start of the period
|
||||
in the year of the reference date. */
|
||||
- (NSCalendarDate *) _occurenceForDate: (NSCalendarDate *) refDate
|
||||
byRRule: (iCalRecurrenceRule *) rrule
|
||||
{
|
||||
@@ -132,12 +134,7 @@
|
||||
second: -[self _secondsOfOffset: @"tzoffsetfrom"]];
|
||||
|
||||
dateDayOfWeek = [tmpDate dayOfWeek];
|
||||
|
||||
if (pos > 0)
|
||||
offset = (dayOfWeek - dateDayOfWeek) + ((pos - 1) * 7);
|
||||
else
|
||||
offset = (dayOfWeek - dateDayOfWeek) + (pos * 7);
|
||||
|
||||
offset = (dayOfWeek - dateDayOfWeek) + (pos * 7);
|
||||
tmpDate = [tmpDate addYear: 0 month: 0 day: offset
|
||||
hour: 0 minute: 0 second: 0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user