date: support out-of-range years in default output#13516
Open
abhishekpradhan wants to merge 2 commits into
Open
date: support out-of-range years in default output#13516abhishekpradhan wants to merge 2 commits into
abhishekpradhan wants to merge 2 commits into
Conversation
abhishekpradhan
marked this pull request as ready for review
July 22, 2026 22:20
|
GNU testsuite comparison: |
Merging this PR will degrade performance by 23.82%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Memory | cp_recursive_deep_tree[(120, 4)] |
532.7 KB | 699.2 KB | -23.82% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing abhishekpradhan:agent/date-large-year-default-output (5919ec1) with main (20bad75)
Footnotes
-
46 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
abhishekpradhan
force-pushed
the
agent/date-large-year-default-output
branch
from
July 23, 2026 15:13
5919ec1 to
2df802a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
parse_datetime::ParsedDateTime::Extendedvalues through the normaldate -ddisplay path--setand non-default formatsThe parser has supported these years since
parse_datetime0.15.0, butdatestill converted every result toZonedand rejected theExtendedvariant.Before and after
Before:
After:
Fixes #9774.
Scope
This PR addresses the
LANG=Cdefault output reported in #9774. Default locale formats that use alternate or composite year directives, arbitrary+FORMATparity, RFC/ISO output, andtouchsupport are intentionally excluded.Validation
cargo fmt --all -- --checkcargo check -p uu_datecargo clippy -p uu_date --all-features --all-targets -- -D warningscargo test -p uu_date --lib --all-features -qcargo test -q --test tests test_date:: -- --nocapture