From 89b59961791ab2c88f376e4e1224e570d0f586a6 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 7 Jun 2007 17:45:48 +0000 Subject: [PATCH] Monotone-Parent: 04987bf3460429ef8bd5a62e68e90a47404843df Monotone-Revision: f2a6e6c575e2fd5429604d257d06fef7dcb07e7e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-07T17:45:48 Monotone-Branch: ca.inverse.sogo --- SOPE/NGCards/ChangeLog | 5 +++++ SOPE/NGCards/iCalDateTime.m | 4 ++-- SOPE/NGCards/iCalEvent.h | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/SOPE/NGCards/ChangeLog b/SOPE/NGCards/ChangeLog index fcca8bd43..fa1265156 100644 --- a/SOPE/NGCards/ChangeLog +++ b/SOPE/NGCards/ChangeLog @@ -1,5 +1,10 @@ 2007-06-07 Wolfgang Sourdeau + * iCalDateTime.m ([iCalDateTime + -_setDateTime:dateTimeforAllDayEntity:forAllDayEntity]): + inverted the all day logic because all day dates where generated + for regular dates and the other way around... + * iCalEvent.m ([iCalEvent -setAllDayWithStartDate:newStartDateduration:days]): new method that sets the start and end dates in an all day fashion. diff --git a/SOPE/NGCards/iCalDateTime.m b/SOPE/NGCards/iCalDateTime.m index 305580b7f..bf18fd8a8 100644 --- a/SOPE/NGCards/iCalDateTime.m +++ b/SOPE/NGCards/iCalDateTime.m @@ -109,9 +109,9 @@ tmpTime = [dateTime copy]; [tmpTime setTimeZone: utcTZ]; if (forAllDayEntity) - fmtTimeString = [tmpTime iCalFormattedDateTimeString]; - else fmtTimeString = [tmpTime iCalFormattedDateString]; + else + fmtTimeString = [tmpTime iCalFormattedDateTimeString]; timeString = [NSString stringWithFormat: @"%@Z", fmtTimeString]; [tmpTime release]; } diff --git a/SOPE/NGCards/iCalEvent.h b/SOPE/NGCards/iCalEvent.h index 608b05854..576b5f79d 100644 --- a/SOPE/NGCards/iCalEvent.h +++ b/SOPE/NGCards/iCalEvent.h @@ -43,6 +43,9 @@ /* accessors */ +- (void) setAllDayWithStartDate: (NSCalendarDate *) newStartDate + duration: (unsigned int) days; + - (void) setEndDate: (NSCalendarDate *) _date; - (NSCalendarDate *) endDate; - (BOOL) hasEndDate;