Fix date parsing with new versions of parsedatetime