Handle end of day (24:00:00) as a special case