We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

24 hour format in scheduler

Thread ID:

Created:

Updated:

Platform:

Replies:

144706 May 18,2019 08:31 AM UTC Aug 8,2019 10:39 AM UTC Blazor 10
loading
Tags: Scheduler
Uwe Hein
Asked On May 18, 2019 08:31 AM UTC

Hi,

  I am working with 

    <PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.0-preview5-19227-01" />
    <PackageReference Include="Syncfusion.EJ2.AspNet.Core.RazorComponents" Version="17.1.0.47-beta" />

   Is there a way to change the scheduler to 24 hour format as locale is not working yet? I was able to change DateFormat but there is no TimeFormat property.

    regards

        Uwe Hein

Karthigeyan Krishnamurthi [Syncfusion]
Replied On May 22, 2019 08:21 AM UTC

Hi Uwe, 
 
Greetings from Syncfusion. 
 
The time mode of the Scheduler can be either 12 or 24 hours format which is completely based on the locale set to the Scheduler. Currently the localization support is not available for Blazor components and already logged the feature request which can be tracked from the below link. Feature will be included in JS2 weekly patch release on June 4, 2019. 
 
Regards, 
Karthi 


Uwe Hein
Replied On June 11, 2019 05:00 PM UTC

Hi,

   testing with 17.1.0.51-beta Locale="de-DE" is not yet working in scheduler.

      regards

         Uwe

Karthigeyan Krishnamurthi [Syncfusion]
Replied On June 12, 2019 11:01 AM UTC

Hi Uwe, 
 
Thanks for your update. 
 
We have checked the reported case in v.17.1.0.51-beta and locale is working fine at our end. We have prepared the below sample with ‘de’ culture for your reference. Kindly try the sample and let us know for further assistance.  
 
Please use the below json file (wwwroot/css/de/locale.json) to customize the Scheduler locale words to ‘de’ culture. 
  
 
<div class="col-lg-12 control-section"> 
    <div class="schedule-wrapper"> 
        <EjsSchedule id="schedule" Locale="de" Width="100%" Height="650px" SelectedDate="new DateTime(2019, 1, 10)"> 
        </EjsSchedule> 
    </div> 
</div> 
 
@functions{ 
 
    protected override void OnAfterRender() 
    { 
        this.JsRuntime.Ejs().EnableRipple(true).LoadLocaleData("wwwroot/css/de/locale.json").LoadCldrData(new string[] { "wwwroot/css/de/numberingSystems.json", "wwwroot/css/de/ca-gregorian.json", "wwwroot/css/de/numbers.json", "wwwroot/css/de/timeZoneNames.json" }); 
    } 
 
} 
 
Regards, 
Karthi 
 


Uwe Hein
Replied On June 12, 2019 04:19 PM UTC

Karthi,

   thank you for your quick reply. It is working OK (If you know how  ) 2 things to mention ...

The German Umlaute are not displayed correctly and some translations could be corrected.
In the edit window date and time picker are still in the US format.

If you are interested I could send you my (not completely corrected) locale.json.

    regards

       Uwe

Hareesh Balasubramanian [Syncfusion]
Replied On June 13, 2019 05:50 PM UTC

Hi Uwe, 
  
Thank you for your update. 
 
The German Umlaute are displayed incorrectly as you reported, we have considered this as a bug and we will get this fixed in our upcoming volume 2 beta release which is expected to be roll out by end of this month, June 2019. 
We appreciate your help and please share us your locale.json file, we could use it for validating our locale file and to make necessary corrections.  
Also as you reported, the date and time picker still remains in the US format in ‘de’ locale, we have noted this issue and have created a feedback portal to track this issue. We will fix also this issue in our upcoming public beta of 2019 volume 2 release. 
 
 
 
Regards, 
Hareesh B 


Uwe Hein
Replied On June 18, 2019 03:02 PM UTC

@Hareesh B

  sorry for taking so long. I corrected all of the unusual german translations in locale.json I could find. In addition to that I also corrected the umlaute problem. The "52" Version seems to work with preview 6 after some adjustments to the - Resources="@resourceData" - statement.

    regards

       Uwe

Attachment: locale_50291c31.zip

Karthigeyan Krishnamurthi [Syncfusion]
Replied On June 19, 2019 09:35 AM UTC

HI Uwe, 

We are happy that your issue resolved in latest version. We will validate the shared json file and will modify the German words for RecurrenceEditor and Scheduler component in Volume 2 beta release as promised earlier. We appreciate your contribution to correct the localized words. 

Regards, 
Karthi 
 


Riccardo Zucchetto
Replied On August 1, 2019 12:15 PM UTC

Hi Karthigeyan,
I have noticed that in the client-server version (so, not the server only but the one with the .Client, .Server and .Shared projects) of Blazor the localization doesn't work.
I have tried putting the files in the wwwroot folder, in the .Client project, and tried loading it in the same way you suggested (LoadLocaleData("wwwroot/css/de/locale.json") etc...), but Blazor can't find neither the wwwroot folder nor other subfolders.

Am I doing something wrong or client-side localization is not supported yet?

Thank you,
Riccardo

Karthigeyan Krishnamurthi [Syncfusion]
Replied On August 7, 2019 03:14 PM UTC

Hi Riccardo 
  
Sorry for the delay. 
 
We could reproduce the reported issue with Client Blazor application. We are validating with high priority and will provide the further details with timeline for the fix on August 8, 2019. 
 
Regards, 
Karthi 


Karthigeyan Krishnamurthi [Syncfusion]
Replied On August 8, 2019 10:39 AM UTC

Hi Riccardo, 
 
We have logged the below bug report for the reported case “localization not working in Client Blazor”. The fix will be included in biweekly release on August 19, 2019. 
 
Regards, 
Karthi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon