mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-27 16:10:35 +00:00
@@ -199,7 +199,7 @@ static inline id GetProperty(NSDictionary *_set, NSString *_name) {
|
||||
|
||||
if ([val respondsToSelector:@selector(descriptionWithCalendarFormat:)]) {
|
||||
static NSTimeZone *gmt = nil;
|
||||
if (gmt == nil) gmt = [NSTimeZone timeZoneWithAbbreviation:@"GMT"];
|
||||
if (gmt == nil) gmt = [NSTimeZone timeZoneForSecondsFromGMT: 0];
|
||||
[val setTimeZone:gmt];
|
||||
val = [val descriptionWithCalendarFormat:calfmt];
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
static NSTimeZone *gmt = nil;
|
||||
static inline void _setupGMT(void) {
|
||||
if (gmt == nil)
|
||||
gmt = [[NSTimeZone timeZoneWithAbbreviation:@"GMT"] retain];
|
||||
gmt = [[NSTimeZone timeZoneForSecondsFromGMT: 0] retain];
|
||||
}
|
||||
|
||||
@implementation NSCalendarDate(iCalRepresentation)
|
||||
|
||||
@@ -340,7 +340,7 @@
|
||||
second = 0;
|
||||
}
|
||||
|
||||
utc = [NSTimeZone timeZoneWithAbbreviation: @"GMT"];
|
||||
utc = [NSTimeZone timeZoneForSecondsFromGMT: 0];
|
||||
date = [NSCalendarDate dateWithYear: year month: month
|
||||
day: day hour: hour minute: minute
|
||||
second: second
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
NSCalendarDate *utcStart, *utcEnd;
|
||||
NSTimeZone *uTZ;
|
||||
|
||||
uTZ = [NSTimeZone timeZoneWithAbbreviation: @"GMT"];
|
||||
uTZ = [NSTimeZone timeZoneForSecondsFromGMT: 0];
|
||||
utcStart = [start copy];
|
||||
utcEnd = [end copy];
|
||||
[utcStart setTimeZone: uTZ];
|
||||
|
||||
Reference in New Issue
Block a user