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

support two-digit year in non-gregorian calendars #1187

Merged

Conversation

sm-ghavami
Copy link
Contributor

We had an issue with parsing two digit year in non-gregorian calendars. This PR will fix that issue and provide a fix for both jalali and hijri calendars.

Copy link
Member

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

I wonder if we should do something similar for Gregorian, but no need to do it here.

@sm-ghavami
Copy link
Contributor Author

The primary advantage of this approach over the Gregorian one is its customizability. Everyone can easily extend the parsers and override the handle_two_digit_year method to tailor it to their specific use cases.

@sm-ghavami
Copy link
Contributor Author

@Gallaecio This PR has been approved but not merged yet. Could you check this please?

@Gallaecio Gallaecio merged commit 3955530 into scrapinghub:master Nov 22, 2023
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants