iCalDateTIme: fix all-day entities
When setting an all-day entity (no time), make sure to set the NSCalendarDate to GMT before formatting the string.pull/8/head
parent
5c3dc34440
commit
d835921062
|
@ -122,15 +122,13 @@
|
|||
else
|
||||
{
|
||||
tmpTime = [dateTime copy];
|
||||
utcTZ = [NSTimeZone timeZoneWithName: @"GMT"];
|
||||
[tmpTime setTimeZone: utcTZ];
|
||||
if (forAllDayEntity)
|
||||
timeString = [tmpTime iCalFormattedDateString];
|
||||
else
|
||||
{
|
||||
utcTZ = [NSTimeZone timeZoneWithName: @"GMT"];
|
||||
[tmpTime setTimeZone: utcTZ];
|
||||
timeString = [NSString stringWithFormat: @"%@Z",
|
||||
[tmpTime iCalFormattedDateTimeString]];
|
||||
}
|
||||
[tmpTime release];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue