You should set NSLocale when use NSDateFormatter


Hello, I thank you for your great book.
But there’s one thing missing in chapter 29.
The name of day (like Mon, Tue, …) or month (like Jan, Feb, …) can be different depending on which locale your iPad is set.
In my case it was set to Korean, so items’ array wasn’t sorted until I set locale as English for the date formatter.
It was a good lesson for me to find this locale bug, but you should aware of this bug, so I’m sharing it.


Ah thanks, I had the same problem and began looking for something on the Internet,before I remembered your post … my iPad was set for French !