Wrong first day of week for culture de-AT

Hello,

in my project I want to use the culture de-AT which I set/load with following code:

setCulture('de-AT');
setCurrencyCode('EUR');

loadCldr(
require('cldr-data/main/de-AT/ca-gregorian.json'),
require('cldr-data/main/de-AT/timeZoneNames.json'),
require('cldr-data/main/de-AT/numbers.json'),
require('cldr-data/main/de-AT/currencies.json'),
require('cldr-data/supplemental/numberingSystems.json'),
require('cldr-data/supplemental/weekData.json')
);

So far everything works fine except the first day of week in DateTimePicker. It should be Monday, but defaults to Sunday.

I debugged the code responsible for getting the first day of week from culture data and it seems it should only read weekData with country, but it's reading with the whole culture (see screenshot). For english based cultures there is an "if" to slice the language part and only keep the country. I think this should be done for all cultures, not only english based ones.


Best Regards,

Marcel


9 Replies 1 reply marked as answer

DR Deepak Ramakrishnan Syncfusion Team November 29, 2021 03:28 PM UTC

Hi Marcel, 
 
Greetings from Syncfusion support. 
 
 
We have validated the reported issue in our end with provided details . And found that we can use ‘firstDayOfWeek’  property to achieve your requirement. Kindly refer the below sample and code sippet for your reference. 
 
[app.component.html] 
<ejs-datetimepicker [firstDayOfWeek]="firstDayOfWeek"></ejs-datetimepicker> 
[app.component.ts] 
export class AppComponent { 
 
    public date: Object = new Date(); 
 
    public  firstDayOfWeek: number = 1; 
 
    constructor() { 
         
    } 
 
} 
 
 
 
Thanks, 
Deepak R. 



MR Marcel Ring November 29, 2021 06:41 PM UTC

Hello Deepak!

Thanks for your reply!

I don‘t want to set the first day of week on every picker I use, as this seems like a workaround to me.

I want it to correctly load the first day of week from the culture data which I provide to the syncfusion components with weekData.json.

So this should be seen as a bug report, rather than a knowledge-gap on the usage!

The screenshot from above is syncfusion code which I think doesn‘t work as expected.

Thanks in advance!



DR Deepak Ramakrishnan Syncfusion Team November 30, 2021 05:23 PM UTC

Hi Marcel, 
 
Greetings from Syncfusion support. 
 
We are currently checking the requirement in our end . We will update the further details in two business days (2nd,December 2021). 
 
Thanks, 
Deepak R. 
 



DR Deepak Ramakrishnan Syncfusion Team December 2, 2021 06:46 PM UTC

Hi Marcel, 
 
Thanks for your patience. 
 
We have validated the requirement and found that it is working in generic cultures de,fr etc.. with weekdata json file , but not working for the dependent cultures de-AT,fr-CH etc.. We are currently validating this issue in our end , We will update further details within two business days (6th,December 2021). 
 
 
Thanks, 
Deepak R. 
 



DR Deepak Ramakrishnan Syncfusion Team December 6, 2021 07:22 PM UTC

  
Hi Marcel, 
  
We deeply regret for the inconvenience caused . 
  
We are facing complexity in our end where the issue occurs only for specific cultures. So we need additional time to validate the issue .So we will update the further details within two business days(8 December 2021) 
  
  
Thanks, 
Deepak R. 
 



DR Deepak Ramakrishnan Syncfusion Team December 9, 2021 06:08 PM UTC

 
Hi Marcel, 
 
We have considered the reported issue as bug at our end . And we will include the fix in the upcoming release to be scheduled on end of December 2021. You can track the bug status through below feedback. 
 
 
Thanks, 
Deepak R. 


Marked as answer

MR Marcel Ring December 9, 2021 06:37 PM UTC

Hi Deepak,

thanks a lot for the fast reply to this issue. Appreciate it!

Best Regards,

Marcel



MR Marcel Ring replied to Deepak Ramakrishnan December 10, 2021 06:13 AM UTC

Hi Deepak,


could you please add your linked feedback to my account, as I'm currently not able to access it.


Thanks in advance,

Marcel



DR Deepak Ramakrishnan Syncfusion Team December 10, 2021 10:48 AM UTC

You are welcome, Marcel. We will intimate you once the release get rolled out. 


Loader.
Up arrow icon