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

[Bug] chrono-english breaks with latest chrono version #534

Closed
Nukesor opened this issue May 28, 2024 · 3 comments · Fixed by #536
Closed

[Bug] chrono-english breaks with latest chrono version #534

Nukesor opened this issue May 28, 2024 · 3 comments · Fixed by #536
Labels

Comments

@Nukesor
Copy link
Owner

Nukesor commented May 28, 2024

Describe the bug

So, chrono released a new version where they introduced breaking changes in a minor release.

This broke some trivial things in chrono-english, however chrono-english seems to be unmaintained and the author is unresponsive. See stevedonovan/chrono-english#29 and stevedonovan/chrono-english#30

Due to a missing alternative, I decided to contact the maintainer of dateparser, which was open to add such functionality upstream in their crate.

I started work on this over in https://github.com/Nukesor/dateparser/tree/natural-language for waltzofpearls/dateparser#48, but I'm getting side-tracked by work and other projects.

@Nukesor Nukesor added the t: Bug label May 28, 2024
@conradludgate
Copy link

For the record, I am maintaining a fork of chrono-english. https://docs.rs/interim/latest/interim/index.html

Complete rewrite but the same tests pass and it supports time as well as chrono. Let me know if I can help at all

@Nukesor
Copy link
Owner Author

Nukesor commented May 30, 2024

Uh nice!
Your overhaul definitely looks a lot cleaner than the old chrono-english codebase :D. It was a bit of a mess, not gonna lie.
I might just switch to your fork!

I was personally really interested in seeing an implementation that utilizies a proper parser library (pest in this case), but I really don't have the time to follow up on this right now 😅

Thanks for your work! I'll take a closer look in the next few days :)

@Nukesor
Copy link
Owner Author

Nukesor commented May 31, 2024

Thanks again @conradludgate, this saved me a lot of time and work 😁

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

Successfully merging a pull request may close this issue.

2 participants