Skip to content

fix: invalid timezone should return err not panic - #47

Closed
TCeason wants to merge 6 commits into
bspeice:masterfrom
TCeason:try_fix_46
Closed

fix: invalid timezone should return err not panic#47
TCeason wants to merge 6 commits into
bspeice:masterfrom
TCeason:try_fix_46

Conversation

@TCeason

@TCeason TCeason commented Jul 16, 2024

Copy link
Copy Markdown

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

TCeason commented Jul 16, 2024

Copy link
Copy Markdown
Author

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

@TCeason

TCeason commented Jul 16, 2024

Copy link
Copy Markdown
Author

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

@bspeice

bspeice commented Aug 18, 2024

Copy link
Copy Markdown
Owner

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

TCeason commented Aug 19, 2024

Copy link
Copy Markdown
Author

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