culture not found exception is thrown when selecting date in GH culture

I am using sfDatetimeRangepicker in maui blazor app and get an error culture not found when ever I select a date. using the below culture throws the error : 

 CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-GH");

CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("en-GH");


I reliased there was a fix for ver 23.1.41. but the current build version still throws the error.

I am using ver 24.1.47.


Thank you.


5 Replies

BD Boot Dat January 31, 2024 06:52 PM UTC

check if it works with sfDatetime to know if the problem is with only sfDatetimeRangepicker or both. 
I never used sfDatetimeRangepicker but I was the one who reported the new CultureInfo("en-GH") bug and it got fixed. It's still working for me on  
23.2.6 so check if the issue is only on sfDatetimeRangepicker 



AL Ali February 1, 2024 11:29 AM UTC

Hello Boot Dat.

I tried your suggestion and it's seem the issue is with the sfDatetimeRangePicker. The Sfdatetimepicker works perfectly fine with the GH culture.



BD Boot Dat replied to Ali February 1, 2024 07:30 PM UTC

Great. So we are now one step forward. This means they only fixed it on sfdatetimepicker not sfDatetimeRangePicker. I hope they see this soon so they suggest a solution or add a fix for the next update. 

For now I can suggest you use two sfdatetimepicker for what you want to do till it's fixed. Only if it would workout with what you building or working on. 



KP Kokila Poovendran Syncfusion Team February 2, 2024 10:05 AM UTC

Hi Ali,


We have already considered the reported issue Culture not found exception is thrown when selecting date in GH culture - DateRangePicker" as a bug from our end and the fix for the issue will be included with our upcoming patch release ,which is expected to be rolled out at the end of February, 2024. Now you can track the status of the reported issue through the feedback below,


Feedback Link: https://www.syncfusion.com/feedback/50535/culture-not-found-exception-is-thrown-when-selecting-date-in-gh-culture


Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.



KP Kokila Poovendran Syncfusion Team February 22, 2024 05:15 AM UTC

Hi Ali,


We have included the fix for the issue "Culture not found exception is thrown when selecting date in GH culture - DateRangePicker" with our package version “24.2.6”. Therefore, we recommend upgrading to our latest version to resolve the current issue.


Release notes:
https://blazor.syncfusion.com/documentation/release-notes/24.2.6?type=all#bug-fixes-4


Regards,
Kokila Poovendran.


Loader.
Up arrow icon