Fixing dates check
Merge pull request #4 from magmax/master

Fixing dates check