That works for me when I try it. Adding NSLog(@"%@", date)
to the end of your code gives me this output:
2010-02-28 12:17:22.921 app[9204:a0f] 2009-12-17 09:01:00 -0800
What is the problem you're seeing?
Edit: I figured it out, you're not having a problem with 09:01
, but with other 24-hour times, like 14:25
, right? Change your formatter to:
@"HHmm'Z' MM/dd/yy"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…