I noticed last week in the Kevin Smith App that some of my dates handled with NSDate+Helper are now jumping a year. It looks like everything in the last week of December/first week of January. For example, a post on Dec 29, 2009 is showing as Dec 29, 2010. While Dec 25 is showing correctly as 2009.
I've done a bunch of logging, and the source data coming in is correct with 2009.
It looks like it is items calling stringForDisplayFromDate
So I think the fix is to change line 129 of NSDate+Helper.m from
[displayFormatter setDateFormat:@"MMM d, YYYY"];
User denvog reports:
I noticed last week in the Kevin Smith App that some of my dates handled with NSDate+Helper are now jumping a year. It looks like everything in the last week of December/first week of January. For example, a post on Dec 29, 2009 is showing as Dec 29, 2010. While Dec 25 is showing correctly as 2009.
I've done a bunch of logging, and the source data coming in is correct with 2009.
It looks like it is items calling stringForDisplayFromDate
So I think the fix is to change line 129 of NSDate+Helper.m from [displayFormatter setDateFormat:@"MMM d, YYYY"];
According to this thread there is a difference in calendar as of day, as opposed to calendar year as of week. http://www.iphonedevsdk.com/forum/iphone-sdk-development/8355-date-formatting-yyyy-vs-yyyy-getting-wrong-year.html