iCal4ObjC icon indicating copy to clipboard operation
iCal4ObjC copied to clipboard

Date parsing format wrong

Open abarisain opened this issue 12 years ago • 0 comments

Hello !

I've been using your great library to parse some iCal files on iOS.

However, I noticed a strange bug : dates parsed were a year less than the actual date.

The fix is simple : In NSDate.CGICalendar.m, replace YYYY by yyyy in CGNSDATE_ICALENDAR_DATETMEFORMAT and CGNSDATE_ISO8601_DATETMEFORMAT

Here is the justification :

http://stackoverflow.com/a/8187078

abarisain avatar Sep 28 '12 16:09 abarisain