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 time 0.3 infinity panics #1197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

allan2
Copy link
Contributor

@allan2 allan2 commented Jan 20, 2025

Trying to get a PrimitiveDateTime panics if the value was infinity. This commit fixes the panic.

An infinity test is added, mirroring the existing one for chrono. The test is passing.

I also have an example repo here --> https://github.com/allan2/postgres-time-overflow

This PR is for Issue #1171, but for time 0.3 only.

Getting `PrimitiveDateTime` panics if the value is infinity.
This commit fixes the panic.

An infinity test is added, mirroring the existing one for chrono.
@allan2 allan2 mentioned this pull request Jan 20, 2025
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.

1 participant