fix getDates
Merge pull request #1 from olivoil/master

Thanks