Skip to content

Commit

Permalink
Merge pull request #142 from roneloza/fix-format-date-locale
Browse files Browse the repository at this point in the history
fix(format-date-locale)
  • Loading branch information
mikenachbaur-okta authored Dec 16, 2020
2 parents a90b6fa + 189d3b2 commit 85b4375
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/RestAPI/OktaAPIRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class OktaAPIRequest {
decoder = JSONDecoder()

let formatter = DateFormatter()
formatter.locale = Locale(identifier: "en_US_POSIX")
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
decoder.dateDecodingStrategy = .formatted(formatter)
}
Expand Down

0 comments on commit 85b4375

Please sign in to comment.