mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-04-27 15:07:39 +00:00
Merge pull request #196 from RobotsAndPencils/andrew/DateModifiedFormatterLocale
Use a fixed locale for API response date parsing
This commit is contained in:
commit
e628d04beb
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ extension DateFormatter {
|
||||||
static let downloadsDateModified: DateFormatter = {
|
static let downloadsDateModified: DateFormatter = {
|
||||||
let formatter = DateFormatter()
|
let formatter = DateFormatter()
|
||||||
formatter.dateFormat = "MM/dd/yy HH:mm"
|
formatter.dateFormat = "MM/dd/yy HH:mm"
|
||||||
|
formatter.locale = Locale(identifier: "en_US_POSIX")
|
||||||
return formatter
|
return formatter
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue