diff --git a/SOPE/NGCards/ChangeLog b/SOPE/NGCards/ChangeLog index f57d01a6e..a2fec6384 100644 --- a/SOPE/NGCards/ChangeLog +++ b/SOPE/NGCards/ChangeLog @@ -1,3 +1,8 @@ +2010-01-06 Wolfgang Sourdeau + + * iCalDateTime.m (-setTimeZone:): don't modify the date in case of + an all-day value, otherwise the resulting date will be recomputed. + 2009-10-19 Francis Lachapelle * iCalDateTime.m (-setTimeZone:): don't add the time in case of an diff --git a/SOPE/NGCards/iCalDateTime.m b/SOPE/NGCards/iCalDateTime.m index a3e625cee..cc0a2d4e7 100644 --- a/SOPE/NGCards/iCalDateTime.m +++ b/SOPE/NGCards/iCalDateTime.m @@ -73,9 +73,7 @@ [self setValue: 0 ofAttribute: @"tzid" to: newTZId]; - if ([self isAllDay]) - [self setDate: dateTime]; - else + if (![self isAllDay]) [self setDateTime: dateTime]; }