diff --git a/Sources/APIProvider.swift b/Sources/APIProvider.swift index e124ec9d..69a432a9 100644 --- a/Sources/APIProvider.swift +++ b/Sources/APIProvider.swift @@ -75,7 +75,12 @@ public final class APIProvider { /// Contains a JSON Decoder which can be reused. static let jsonDecoder: JSONDecoder = { let decoder = JSONDecoder() + let formatter = DateFormatter() + formatter.locale = Locale(identifier: "en_US_POSIX") + formatter.timeZone = TimeZone(secondsFromGMT: 0) + formatter.calendar = Calendar(identifier: .iso8601) + decoder.dateDecodingStrategy = .custom({ (decoder) -> Date in let container = try decoder.singleValueContainer() let dateStr = try container.decode(String.self) diff --git a/Submodules/WeTransfer-iOS-CI b/Submodules/WeTransfer-iOS-CI index 6455b885..3f4ba934 160000 --- a/Submodules/WeTransfer-iOS-CI +++ b/Submodules/WeTransfer-iOS-CI @@ -1 +1 @@ -Subproject commit 6455b885f2a057c0fe15fc86bd3e4f5b97a560e2 +Subproject commit 3f4ba934effc2311b4aa37d641de07a5e6a78dc3