Add locale to date formatter

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

View File

@ -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)