From efdcdfb70d3c1988a48ace30ce8c12e5c1c5e62f Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Mon, 6 Apr 2015 17:51:24 -0500 Subject: [PATCH] #1217 - Documenting why [NSTimeZone resetSystemTimeZone] is called --- platform/ios/MGLMapboxEvents.m | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index bd9fc9165..63ec786d4 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -165,6 +165,7 @@ NSString *const MGLEventGestureRotateStart = @"Rotation"; [_rfc3339DateFormatter setLocale:enUSPOSIXLocale]; [_rfc3339DateFormatter setDateFormat:@"yyyy'-'MM'-'dd'T'HH':'mm':'ss z Z"]; + // Clear Any System TimeZone Cache [NSTimeZone resetSystemTimeZone]; [_rfc3339DateFormatter setTimeZone:[NSTimeZone systemTimeZone]]; }