diff --git a/SOPE/NGCards/ChangeLog b/SOPE/NGCards/ChangeLog index e32ca7c60..f3dcd4881 100644 --- a/SOPE/NGCards/ChangeLog +++ b/SOPE/NGCards/ChangeLog @@ -1,5 +1,9 @@ 2010-10-08 Wolfgang Sourdeau + * iCalEvent.m (-setAllDayWithStartDate:duration:): added a + work-around for bug 866, by adding one hour in addition to the + offset in days from the start date. + * NSString+NGCards.m (-unescapedFromCard): removed obsolete method. (-componentsWithSafeSeparator:): renamed to diff --git a/SOPE/NGCards/iCalEvent.m b/SOPE/NGCards/iCalEvent.m index 3bbde5c50..3afe3b071 100644 --- a/SOPE/NGCards/iCalEvent.m +++ b/SOPE/NGCards/iCalEvent.m @@ -57,7 +57,9 @@ [(iCalDateTime *) [self uniqueChildWithTag: @"dtstart"] setDate: newStartDate]; - endDate = [newStartDate dateByAddingYears: 0 months: 0 days: days]; + // HACK: we add 1 hour to avoid losing a day on time shift dates + endDate = [newStartDate dateByAddingYears: 0 months: 0 days: days + hours: 1 minutes: 0 seconds: 0]; [endDate setTimeZone: [newStartDate timeZone]]; [(iCalDateTime *) [self uniqueChildWithTag: @"dtend"] setDate: endDate];