Implemented the "gmt" static property in the TimeZone+Zone extension.
This commit is contained in:
parent
a9a7a6399a
commit
e9d9c9e475
@ -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
|
||||
|
10
Sources/Core/Extensions/TimeZone+Zone.swift
Normal file
10
Sources/Core/Extensions/TimeZone+Zone.swift
Normal file
@ -0,0 +1,10 @@
|
||||
import Foundation
|
||||
|
||||
public extension TimeZone {
|
||||
|
||||
// MARK: Zones
|
||||
|
||||
/// Greenwich Mean Time or UTC+0
|
||||
static let gmt = TimeZone(secondsFromGMT: 0)
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user