Add locale to date formatter
This commit is contained in:
parent
ce0d5590f1
commit
d2245b629b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue