Please help me with non-obvious code behavior
NSCalendar *calendar = [NSCalendar currentCalendar]; NSDateComponents *dateComponents = [[NSDateComponents alloc] init]; dateComponents.hour = 15; dateComponents.minute = 20; dateComponents.calendar = calendar; NSDate * endDate = [calendar dateFromComponents:dateComponents]; EndDate is 0001-01-01 12:49:43 +0000. Why?
Hours value may be incorrect due to the difference in the time zones. Why such strange minutes and seconds value? Regards.
secondsFromGMTandabbreviation.