When converting a date string for the server into a NSDate – which is in this format
2012-09-07T11:57:44+10:00
we’re using this dateFormat in NSDateFormatter
yyyy-MM-dd'T'HH:mm:ssZZZ':'mm
but the minutes are always zero minutes.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The second “mm” overwrites the result of the first and sets minutes to zero, having parsed the “00” on the end of the timezone.
In order to parse that format of timestamp you must first somehow remove the last
:character, as NSDateFormater cannot handle that.