This is a migrated thread and some comments may be shown as answers.

Prevent localization of grid.

1 Answer 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Developer
Top achievements
Rank 1
Developer asked on 18 Feb 2013, 10:54 AM
Hi,

I display time in my grid by using:
columns.Bound(p => p.StartDate).Format("{0:HH:mm}").Title("Tid");
When i change my timezone the time changes, how do i prevent this?

i use:

<script src="@Url.Content("~/Scripts/kendo/2012.3.1121/cultures/kendo.culture.sv-SE.min.js")"></script>
 
<script>
      $(document).ready(function () {
        //set culture of the Kendo UI
        kendo.culture("sv-SE");
    });
</script>
But it still changes when i change my timezone.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 20 Feb 2013, 06:07 AM
Hello Dick,

Please check this code-library which demonstrates how to use the same time no matter the timezone.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Developer
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or