From 90cbcf75ace7879a8dd8c1d9353af5835c20fd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Mon, 20 Feb 2017 03:28:56 -0800 Subject: [PATCH] Use UTC in tests --- MapboxStaticTests/MapboxStaticTests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MapboxStaticTests/MapboxStaticTests.swift b/MapboxStaticTests/MapboxStaticTests.swift index 608c617..c20ef40 100644 --- a/MapboxStaticTests/MapboxStaticTests.swift +++ b/MapboxStaticTests/MapboxStaticTests.swift @@ -18,6 +18,9 @@ class MapboxStaticTests: XCTestCase { override func setUp() { super.setUp() OHHTTPStubs.removeAllStubs() + + // Make sure tests run in all time zones + NSTimeZone.default = TimeZone(secondsFromGMT: 0)! } fileprivate func parseQueryString(_ request: URLRequest) -> Dictionary {