Repository navigation
[DatePicker] Using Culture when parsing the year value. - #5445
Merged
Merged
Conversation
…to validate this parsing
Vincent Baaij (vnbaaij)
requested a review
from Denis Voituron (dvoituron)
as a code owner
October 14, 2026 07:27
Denis Voituron (dvoituron)
approved these changes
Oct 14, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The new conversion breaks native-style round trips and throws for years unsupported by the configured calendar.
1 open finding
What changed in this PR
Updates year-only DatePicker parsing to respect non-Gregorian cultures and adds Persian-calendar coverage.
Changes:
- Parses Fluent UI year values using the configured calendar.
- Adds a Persian year 1400 regression test.
| File | Description |
|---|---|
src/Core/Components/DateTime/FluentDatePicker.razor.cs |
Uses the configured calendar for year parsing. |
tests/Core/Components/DateTimes/FluentDatePickerTests.razor |
Tests Persian-calendar year parsing. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 98.6%
Microsoft.FluentUI.AspNetCore.Components.Charts - 100%
|
Vincent Baaij (vnbaaij)
enabled auto-merge (squash)
October 14, 2026 07:40
Denis Voituron (dvoituron)
approved these changes
Oct 14, 2026
This was referenced Oct 14, 2026
Closed
Closed
Merged
This was referenced Oct 19, 2026
Closed
Closed
This was referenced Oct 28, 2026
Merged
Closed
This was referenced Nov 9, 2026
This was referenced Nov 19, 2026
Merged
Closed
This was referenced Nov 27, 2026
Closed
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.

Fix #5441 by using the Culture when parsing the year value. Add unit test to validate this parsing.