From afbe25a26c291dc5d006dfda2eb4650bcaa9f9f7 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 29 Mar 2021 18:53:49 -0500 Subject: [PATCH] Add locale to date formatter --- .../Account/FeedProvider/Twitter/TwitterFeedProvider.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Account/Sources/Account/FeedProvider/Twitter/TwitterFeedProvider.swift b/Account/Sources/Account/FeedProvider/Twitter/TwitterFeedProvider.swift index 9a3046103..a2f477385 100644 --- a/Account/Sources/Account/FeedProvider/Twitter/TwitterFeedProvider.swift +++ b/Account/Sources/Account/FeedProvider/Twitter/TwitterFeedProvider.swift @@ -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)