diff --git a/ChangeLog b/ChangeLog index edfc7016a..0c63dd4a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-10-05 Wolfgang Sourdeau + * UI/Scheduler/UIxAppointmentEditor.m: indicate DTSTAMP with "GMT" + as timezone. + * SoObjects/SOGo/NSCalendarDate+SOGo.m ([NSCalendarDate -adjustedDate]) ([NSCalendarDate -driftedDate]): methods made useless by a better comprehension of the NSTimeZone API... diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index dd6e6ad73..863900fb0 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -490,7 +490,7 @@ @"UID:%@\r\n" @"CLASS:PUBLIC\r\n" @"STATUS:CONFIRMED\r\n" /* confirmed by default */ - @"DTSTAMP:%@\r\n" + @"DTSTAMP:%@Z\r\n" @"DTSTART:%@\r\n" @"DTEND:%@\r\n" @"TRANSP:%@\r\n" @@ -501,7 +501,7 @@ @"END:VEVENT\r\n" @"END:VCALENDAR"; - NSCalendarDate *lStartDate, *lEndDate; + NSCalendarDate *lStartDate, *lEndDate, *stamp; NSString *template, *s; unsigned minutes; @@ -515,13 +515,16 @@ lStartDate = [self selectedDate]; lEndDate = [lStartDate dateByAddingYears:0 months:0 days:0 hours:0 minutes:minutes seconds:0]; + + stamp = [NSCalendarDate calendarDate]; + [stamp setTimeZone: [NSTimeZone timeZoneWithName: @"GMT"]]; s = [self iCalParticipantsAndResourcesStringFromQueryParameters]; template = [NSString stringWithFormat:iCalStringTemplate, [[self clientObject] nameInContainer], - [[NSCalendarDate date] iCalFormattedString], - [lStartDate iCalFormattedString], - [lEndDate iCalFormattedString], + [stamp iCalFormattedDateTimeString], + [lStartDate iCalFormattedDateTimeString], + [lEndDate iCalFormattedDateTimeString], [self transparency], [self iCalOrganizerString], s];