fix the insane limits of laterthan, max year 1000 makes it useless. Redmine #6530.