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;