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

fix: invalid timezone should return err not panic #47

Closed
wants to merge 6 commits into from

Conversation

TCeason
Copy link

@TCeason TCeason commented Jul 16, 2024

Summary

In main branch, call parse("2000-01-01 12:00:00+00:"); will cause panic.

panic info: index out of length. Because of https://github.com/bspeice/dtparse/blob/master/src/lib.rs#L856

Fix: #46

@TCeason
Copy link
Author

TCeason commented Jul 16, 2024

Hi @bspeice , I'm not sure if you're still maintaining this project. But please take some time to review this pr.

@TCeason
Copy link
Author

TCeason commented Jul 16, 2024

If the fmt code causes difficulties in review, I can revert them

@bspeice
Copy link
Owner

bspeice commented Aug 18, 2024

Apologies that I've been delayed on this. I don't see any obvious problems but it would be appreciated to split the bugfix and formatting changes into distinct patches.

@TCeason
Copy link
Author

TCeason commented Aug 19, 2024

Apologies that I've been delayed on this. I don't see any obvious problems but it would be appreciated to split the bugfix and formatting changes into distinct patches.

Fine. fix pr in #48

@TCeason TCeason closed this Aug 19, 2024
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.

bug: if timezone only has hour_offset but the string end with a : will cause panic
2 participants