Add locale to date formatter

This commit is contained in:
Maurice Parker 2021-03-29 18:53:49 -05:00
parent bfb6b3719e
commit afbe25a26c
1 changed files with 1 additions and 0 deletions

View File

@ -399,6 +399,7 @@ private extension TwitterFeedProvider {
let decoder = JSONDecoder() let decoder = JSONDecoder()
let dateFormatter = DateFormatter() let dateFormatter = DateFormatter()
dateFormatter.locale = Locale.init(identifier: "en_US_POSIX")
dateFormatter.dateFormat = Self.dateFormat dateFormatter.dateFormat = Self.dateFormat
decoder.dateDecodingStrategy = .formatted(dateFormatter) decoder.dateDecodingStrategy = .formatted(dateFormatter)