WeekOfYear overflowing to 1 in 53rd week in gregorian calendar?
问题 The issue I have is quite clear. This year, the 28th to 31st of december 2014 fall to 53rd week of 2014. For some reason, NSCalendar is generating the wrong value when I extract the components from the date. Why? Am I missing something? NSDateComponents *mockTodayComponents = [[NSDateComponents alloc] init]; mockTodayComponents.day = 27; mockTodayComponents.month = 12; mockTodayComponents.year = 2014; NSDate *mockToday = [[NSCalendar currentCalendar] dateFromComponents:mockTodayComponents]; /