Fix the regression with parsing dates. Thanks Kin Wah