fixes bug 1002771 - bad dates
Merge pull request #2030 from twobraids/bad_dates

fixes bug 1002771 - bad dates