Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit 9c59885

Browse files
committed
Set NSDateFormatter locale.
Set locale when parsing fixed-format dates, per https://developer.apple.com/library/ios/qa/qa1480/_index.html
1 parent 6fbdc29 commit 9c59885

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CoreDataKit/Importing/JsonDecode+Importing.swift

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ extension NSDate {
5151
static let withTimeZone : NSDateFormatter = {
5252
let formatter = NSDateFormatter()
5353
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
54+
formatter.locale = NSLocale(localeIdentifier: "en_US_POSIX")
5455

5556
return formatter
5657
}()

0 commit comments

Comments
 (0)