Genpact Cora Knowledge Center

Support

Working with Time Zones

Cora 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>