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

Handle dates before 1900 during indexing (py2 only) #2256

Merged
merged 1 commit into from Jul 25, 2019
Merged

Handle dates before 1900 during indexing (py2 only) #2256

merged 1 commit into from Jul 25, 2019

Conversation

noirbizarre
Copy link
Contributor

This PR fixes indexing with date before 1900. This should not theoretically happen because there is only created_at and last_modified but some harvested dataset can have this issue.

This is a Python 2 only fix as the "before 1900" limitation has been removed in Python 3 (and so udata.utils.to_iso* helpers can be safely removed from py3 branches and rely on the builtin datetime.isoformat(timespec='seconds'))

(fix datagouv/data.gouv.fr#140 part 2)

@noirbizarre noirbizarre merged commit 0256429 into opendatateam:master Jul 25, 2019
@noirbizarre noirbizarre deleted the dgfr140-py2-date-before-1900 branch July 25, 2019 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problème d'indexation sur certains jeux de données
2 participants