Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date parser doesn't properly parse ISO date #552

Open
nijel opened this issue Sep 8, 2019 · 0 comments
Open

Date parser doesn't properly parse ISO date #552

nijel opened this issue Sep 8, 2019 · 0 comments

Comments

@nijel
Copy link
Collaborator

nijel commented Sep 8, 2019

The simple query datefield:2019-02-02 seems to be parsed as datefied:2019 by the date parser.

I was able to make it parse properly by giving higher priority to simple parser here:

self.bundle = Choice((self.plusdate, self.datetime, self.simple),
name="bundle")

The new order reads: (self.plusdate, self.simple, self.datetime)

But I'm not really sure if it won't have some bad side effects. For my particular purpose parsing ISO date is more important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant