Prevent localization of grid.

2 posts, 0 answers
  1. Dick
    Dick avatar
    2 posts
    Member since:
    Aug 2011

    Posted 18 Feb 2013 Link to this post

    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.
  2. Daniel
    Admin
    Daniel avatar
    2219 posts

    Posted 20 Feb 2013 Link to this post

    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!
Back to Top