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

juriscraper.opinions.united_states.state.idaho_civil: 2025-08-22 date is in the future. Case 'In ... #1284

Open
sentry-io bot opened this issue Jan 2, 2025 · 1 comment
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 2, 2025

Sentry Issue: COURTLISTENER-8X3

juriscraper.opinions.united_states.state.idaho_civil: 2025-08-22 date is in the future. Case 'In the Interest of Jane Doe II (under 18 years)'
@grossir
Copy link
Contributor

grossir commented Jan 2, 2025

I checked the stored response on S3 and the data is OK
Image
This seems to be a dateutils.parser bug, which is used by juriscraper.lib.string_utils.convert_date_string

In [2]: from juriscraper.lib.string_utils import convert_date_string
In [3]: convert_date_string("Aug 22,2018")
Out[3]: datetime.date(2025, 8, 22)

In [4]: from dateutil import parser
In [5]: parser.parse("Aug 22,2018")
Out[5]: datetime.datetime(2025, 8, 22, 0, 0)

This is fixable by enforcing a space after a comma

In [6]: parser.parse("Aug 22, 2018")
Out[6]: datetime.datetime(2018, 8, 22, 0, 0)

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