From a24233c3762097b30e7cd1cffff54efa680909d5 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 6 Jan 2010 19:15:32 +0000 Subject: [PATCH] Monotone-Parent: 670a32bddc7117ef60e339622258d8cc0c3189ec Monotone-Revision: b81c5b1570ede0294a166ba113ea0402585963ef Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-01-06T19:15:32 Monotone-Branch: ca.inverse.sogo --- SOPE/NGCards/ChangeLog | 5 +++++ SOPE/NGCards/iCalDateTime.m | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) 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]; }