Working with Time Zones

Sequence supports working with multiple time zones, which enables organizations that work in distributed time zones to work in a streamlined fashion. Even though Telerik supports time zones, the database stores the UTC for the local server time. An example of this is if you discover that the control displays the February 1, but on the database, it is January 31.

Use this sample code to work with multiple time zones.

<script type="text/javascript">
         var GMTset = false; 
            function DateSelected(sender, args) 
            { 
                if (!GMTset) 
                { 
                    GMTset = true; 
                    var offset = args.get_newDate().getTimezoneOffset(); 
                    var minutes = args.get_newDate().getMinutes();
                    args.get_newDate().setMinutes(offset); 
                    args.get_newDate().setMinutes(minutes);
                    sender.set_selectedDate(args.get_newDate()); 
                } 
                else 
                { 
                    GMTset = false; 
                } 
            } 
    </script>
About this Article
  • Created: 08/06/2017 2:37 am EDT
  • Last updated: 08/06/2017 2:40 am EDT
In This Article