Skip to content

Comments

fix: invalid timezone should return err not panic#47

Closed
TCeason wants to merge 6 commits intobspeice:masterfrom
TCeason:try_fix_46
Closed

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

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