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