ios - 64-bit CFCalendarComposeAbsoluteTime generated unexpected value -
i used below codes generate absolute time in 64-bit app:
cftimezoneref cftz = cftimezonecopydefault(); cfcalendarref cfgd = cfcalendarcreatewithidentifier(kcfallocatordefault, kcfgregoriancalendar); cfcalendarsettimezone(cfgd, cftz); cfabsolutetime @ = 0.0; cfcalendarcomposeabsolutetime(cfgd, &at, "ymdhms", year, month, day, hour, minute, second);
where year, month, day, hour, minute , second were: 2005, 4, 18, 12, 0, 0.0
but generated absolute time not expected. turned 2005-04-19 13:17:27 pdt.
and go far wrong if added more control, example, locale.
any 1 suffered same issue before? or know api?