NSDateFormatter, am I doing something wrong or is this a bug?
The reason for this behaviour is Locale, It sets the correct Locale. Set the local of your NSDateFormatter to en_US_POSIX will fix this. It works for both 24-hour and 12 hour format. On iPhone OS, the user can override the default AM/PM versus 24-hour time setting (via Settings > General > Date & Time > … Read more