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

Date Underflow Truncate #611

Closed
wants to merge 1 commit into from
Closed

Conversation

kamuli4
Copy link

@kamuli4 kamuli4 commented Feb 17, 2025

Proposed change to resolve issue #595

The proposed code will first convert a date to ISO8601 format, then check if it is lower than 4713 BC, the lowest date representable in Postgres (in ISO8601, the 4713 BC is -4712-01-01). If the date is lower, it will automatically truncate to the -4712-01-01. Truncating to the highest Postgres date was also included if the user-entered date was larger than the highest Postgres value

@kamuli4 kamuli4 changed the title Add files via upload Date Underflow Truncate Feb 17, 2025
@kamuli4 kamuli4 closed this Feb 17, 2025
@kamuli4 kamuli4 deleted the date-underflow branch February 17, 2025 18:16
@kamuli4 kamuli4 restored the date-underflow branch February 17, 2025 18:17
@kamuli4 kamuli4 reopened this Feb 17, 2025
@kamuli4 kamuli4 closed this Feb 17, 2025
@kamuli4 kamuli4 deleted the date-underflow branch February 17, 2025 19:16
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