support leap year
Merge pull request #2142 from dimagi/fix_invalid_date

support leap year