I am having problems with my code and not sure what is wrong with it.
NSString* dateFormat1 = @"EEE MMM dd HH:mm:ss V yyyy";
NSString* dateString1 = @"Fri Jul 26 00:00:00 PHT 2013";
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
[dateFormatter setDateFormat:dateFormat1];
My result for iOS5.1:
2013-08-02 11:59:08.459 MySandbox[41502:c07] 2013-07-25 16:00:00 +0000
For iOS 6.0
2013-08-02 12:02:37.454 MySandbox[41581:c07] (null)
*Note, I used V, instead of zzz or Z because it still is null. *Note 2, I tried to change PHT to PST and it worked. Changed it to JST, it didn't work.
I am guessing that I am not using the correct format. Not really sure which I should use.
*Note 3, as per this question, there really was a change in iOS5 and iOS6 so I guess that is the reason why iOS5 worked.