diff --git a/SOPE/NGCards/iCalDateTime.m b/SOPE/NGCards/iCalDateTime.m index 81d0a88aa..74e89228e 100644 --- a/SOPE/NGCards/iCalDateTime.m +++ b/SOPE/NGCards/iCalDateTime.m @@ -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]]; - } + timeString = [NSString stringWithFormat: @"%@Z", + [tmpTime iCalFormattedDateTimeString]]; [tmpTime release]; } }