dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

add date_formats parameter to DateDataParser

Open brl0 opened this issue 2 years ago • 0 comments

Splitting out from my comment in #939 :

from what I could tell, the DateDataParser does not accept a date_formats parameter, even in the settings dictionary, instead it looks like that must be passed through to the method called to parse the string, which seemed a bit unintuitive to me.

And here was the response from @noviluni:

Yeah, that's weird. In fact, the date_format is applied twice, before translating/cleaning and after if I remember correctly. Feel free to open a new issue and submit a PR with this change, it could be nice to have it :)

brl0 avatar Jul 24 '21 19:07 brl0