[PR #2140] [MERGED] Update RadzenDatePicker.razor.cs #3095

Open
opened 2026-01-29 18:21:54 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/2140
Author: @amir7800h
Created: 5/3/2025
Status: Merged
Merged: 5/5/2025
Merged by: @enchev

Base: masterHead: patch-1


📝 Commits (1)

  • 8ecc3e6 Update RadzenDatePicker.razor.cs

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Radzen.Blazor/RadzenDatePicker.razor.cs (+1 -1)

📄 Description

When setting the project culture (e.g., to fa-IR), the year was still being displayed using the Gregorian calendar, which caused incorrect date representation in the UI. This fix ensures that the DateTimeFormat.Calendar is properly respected, and now the year is displayed correctly based on the assigned calendar (e.g., PersianCalendar).

Before
Culture set to fa-IR

Year displayed as Gregorian (e.g., 2025 instead of 1404)

After
Year display matches the Calendar set in DateTimeFormat

Fully localized and culture-respecting date output


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/2140 **Author:** [@amir7800h](https://github.com/amir7800h) **Created:** 5/3/2025 **Status:** ✅ Merged **Merged:** 5/5/2025 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`8ecc3e6`](https://github.com/radzenhq/radzen-blazor/commit/8ecc3e675ebecee0f784500129732ac3089d33d0) Update RadzenDatePicker.razor.cs ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenDatePicker.razor.cs` (+1 -1) </details> ### 📄 Description When setting the project culture (e.g., to fa-IR), the year was still being displayed using the Gregorian calendar, which caused incorrect date representation in the UI. This fix ensures that the DateTimeFormat.Calendar is properly respected, and now the year is displayed correctly based on the assigned calendar (e.g., PersianCalendar). Before Culture set to fa-IR Year displayed as Gregorian (e.g., 2025 instead of 1404) After Year display matches the Calendar set in DateTimeFormat Fully localized and culture-respecting date output --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:21:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#3095