Fixed error in doomsday calculation in date_get_day_func.