Fix date parsing to always return the current date, plus tests

Fixes gh-1