fix: use DOUBLE_TO_CDTIME_T() to match input type