mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-23 23:22:45 +00:00
Monotone-Parent: dd34ff3c83585062bafd5221403d042c9a83d6ea
Monotone-Revision: 4237da1c46aa8fc93100964f3c0b79c40b83ea1b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-03T15:18:44 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2008-07-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalEvent.m ([iCalEvent -endDate]): if no DTEND is specified,
|
||||
returns the end date based on the start date and take the duration
|
||||
into account if it is specified.
|
||||
|
||||
2008-06-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalFreeBusy.m ([iCalFreeBusy
|
||||
|
||||
@@ -68,8 +68,21 @@
|
||||
|
||||
- (NSCalendarDate *) endDate
|
||||
{
|
||||
return [(iCalDateTime *) [self uniqueChildWithTag: @"dtend"]
|
||||
dateTime];
|
||||
NSCalendarDate *endDate;
|
||||
NSString *duration;
|
||||
|
||||
endDate = [(iCalDateTime *) [self uniqueChildWithTag: @"dtend"]
|
||||
dateTime];
|
||||
if (!endDate)
|
||||
{
|
||||
endDate = [self startDate];
|
||||
duration = [self duration];
|
||||
if ([duration length])
|
||||
endDate
|
||||
= [endDate addTimeInterval: [duration durationAsTimeInterval]];
|
||||
}
|
||||
|
||||
return endDate;
|
||||
}
|
||||
|
||||
- (BOOL) hasEndDate
|
||||
|
||||
Reference in New Issue
Block a user