3 Answers, 1 is accepted
Hi Andrew,
Thank you for the details provided.
In this case, the culture is not set at the server-side. In order to set the required culture globally, I would recommend trying one of the following:
- Use the Globalization functionality and set the culture globally for the application. Here is an example:
@using Kendo.Mvc.UI @using System.Globalization @{ ViewData["Title"] = "Home Page"; CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-GB"); } <script src="https://kendo.cdn.telerik.com/2021.1.119/js/cultures/kendo.culture.en-GB.min.js"></script> <script type="text/javascript"> kendo.culture("en-GB"); </script>
- Add the following in the "ConfigureServices" method in the Startup file:
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-GB")
Give a try to the approaches above and let me know if further assistance is needed.
Kind Regards,
Anton Mironov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Thanks for the reply, however I've already set the culture using the kendo.culture.en-GB.min.js file. A data picker shows the correct date, it's just the chart.
Also, I don't have a startup.cs in the application.
Hello Andrew,
Thank you for the additional details provided. You are totally correct about the StartUp file.
The fastest route to getting you up and running is if you could provide a runnable, isolated, sample project. Examining this project will let us replicate the issue locally and further troubleshoot it.
Looking forward to hearing back from you.
Best Regards,
Anton Mironov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.