19 lines
430 B
Swift
Raw Normal View History

2024-12-10 16:33:57 +00:00
import Foundation
import KreeRequest
2024-12-10 16:33:57 +00:00
extension JSONEncoder {
static let devRant: JSONEncoder = {
let encoder = JSONEncoder()
encoder.dateEncodingStrategy = .iso8601
return encoder
}()
}
extension JSONDecoder {
static let devRant: JSONDecoder = {
let decoder = JSONDecoder()
decoder.dateDecodingStrategy = .iso8601WithOptionalFractionalSeconds
return decoder
}()
}