Skip to content

Commit

Permalink
Merge branch 'master' into feature/app-store-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
AvdLee authored May 5, 2021
2 parents 359d3fb + 1eba31c commit 7bab2fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Sources/APIProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Submodules/WeTransfer-iOS-CI

0 comments on commit 7bab2fd

Please sign in to comment.