summaryrefslogtreecommitdiff
path: root/platform/ios
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2015-04-06 17:51:24 -0500
committerBrad Leege <bleege@gmail.com>2015-04-06 17:51:24 -0500
commitefdcdfb70d3c1988a48ace30ce8c12e5c1c5e62f (patch)
tree62a458187494e4124b013614d2a91cc62304b9f0 /platform/ios
parent67ce07cadaecfc47cb766abcf7eb858950d91d12 (diff)
downloadqtlocation-mapboxgl-efdcdfb70d3c1988a48ace30ce8c12e5c1c5e62f.tar.gz
#1217 - Documenting why [NSTimeZone resetSystemTimeZone] is called
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/MGLMapboxEvents.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m
index bd9fc9165b..63ec786d48 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]];
}