Skip to content

UPSTREAM PR #17589: use RFC 3339 formatting for displaying dates with year > 9999#59

Open
loci-dev wants to merge 2 commits intomainfrom
loci/pr-17589-format-large-date
Open

UPSTREAM PR #17589: use RFC 3339 formatting for displaying dates with year > 9999#59
loci-dev wants to merge 2 commits intomainfrom
loci/pr-17589-format-large-date

Conversation

@loci-dev
Copy link

Note

Source pull request: nushell/nushell#17589

Fixes #17588

All existing tests should still be passing.
Previously, format date would silently switch to using RFC 3339 format for dates before the year 0, and would panic for dates after the year 9999. This PR changes that behavior, and format date now errors for dates outside the 0-9999 range by default and suggests using RFC 3339 format.

Release notes summary - What our users need to know

Fixed panic for displaying date values after the year 9999
More informative error for format date with dates outside the 0-9999 year range

Tasks after submitting

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