[_LIBC] (ampm): Use tp->tm_hour not hour12.