Hardware-dependent NSDateFormatter dateFromString: bug (returns nil)

It’s because you are not setting the date formatter’s locale to the special en_US_POSIX locale. Most likely your iPhone 5 has a different setting for the 24-hour setting.

You need to set the special locale whenever you parse a fixed format string.

Leave a Comment