Skip to content

Commit

Permalink
Add locale to date formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
vincode-io committed Mar 29, 2021
1 parent bfb6b37 commit afbe25a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ private extension TwitterFeedProvider {

let decoder = JSONDecoder()
let dateFormatter = DateFormatter()
dateFormatter.locale = Locale.init(identifier: "en_US_POSIX")
dateFormatter.dateFormat = Self.dateFormat
decoder.dateDecodingStrategy = .formatted(dateFormatter)

Expand Down

0 comments on commit afbe25a

Please sign in to comment.