Implemented the "gmt" static property in the TimeZone+Zone extension.

This commit is contained in:
Javier Cicchelli 2023-04-19 16:14:52 +02:00
parent a9a7a6399a
commit e9d9c9e475
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,10 @@
import Foundation
public extension TimeZone {
// MARK: Zones
/// Greenwich Mean Time or UTC+0
static let gmt = TimeZone(secondsFromGMT: 0)
}