Updated dt.{c,h}
->with_year($year) if the day-of-year is invalid for the given year,
it will be changed to the last valid day of the year.