I have a problem, i want make a date for local notify from a string. I make this:
NSDateFormatter *dateForm = [[NSDateFormatter alloc] init];
[dateForm setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
NSDate *dateSelected = [dateForm dateFromString:@"2012-09-01 08:00:00"];
NSLog(@"notify time: |%@| \n", dateSelected);
but the log is:
notify time: |2012-09-01 06:00:00 +0000|
the time is wrong! Why? tanks for help!
I use iOS 5.1 and xcode 4.4