Implemented the "gmt" static property in the TimeZone+Zone extension.
This commit is contained in:
@@ -17,6 +17,7 @@ public class MockURLProtocol: URLProtocol {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
/// The dictionary in which the mock requests with its respective mock responses will be injected.
|
||||
public static var mockData: [MockURLRequest: MockURLResponse] = [:]
|
||||
|
||||
// MARK: Functions
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import Foundation
|
||||
|
||||
public extension TimeZone {
|
||||
|
||||
// MARK: Zones
|
||||
|
||||
/// Greenwich Mean Time or UTC+0
|
||||
static let gmt = TimeZone(secondsFromGMT: 0)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user