Set your computer timezone to (UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi. Run the following testcase and select "Today". Notice that the time portion shows 01:00:00.
If your computer timezone is set to UTC -05:00, the time portion shows differently. How do I get the control to show the same time regardless of what timezone it is at? I want to just show 00:00
If your computer timezone is set to UTC -05:00, the time portion shows differently. How do I get the control to show the same time regardless of what timezone it is at? I want to just show 00:00
Code:
<HTML><HEAD><TITLE>Filter editor Issue</TITLE> </HEAD> <body class="pageBackground" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" scroll="no" style="overflow:hidden"> <SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT> <SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT> <SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT> <SCRIPT SRC=isomorphic/skins/Enterprise/load_skin.js></SCRIPT> <SCRIPT> isc.DynamicForm.create({ ID: "dateForm", numCols: 4, width: 600, fields: [ {title:"<nobr>DateTime EndDate <\/nobr>",width:"*", colSpan:2, vAlign:"bottom", ID:"DateTime", name:"DateTime", useTextField:true, startDate:"01\/01\/1995 00:00",endDate:"01\/01\/2030 00:00", textAlign:"left", _constructor:"DateItem", init:function () { var dateItem = this; this.dateFormatter = function(){return this.toString()}; this.Super("init", arguments);}} ] }); isc.Label.create({ ID: "dateLabel", top: 40, left: 100, width: 400 }); dateLabel.setContents(dateForm.getValue('pickListDate')); </script> </BODY> </html>
Comment