calculate user's local time as certain GMT times are selected from a drop down box
Posted on 2004-10-09
I am looking for a way to calculate on-the-fly the user's local time as certain GMT times are selected from a drop down box as follows:
<select><option>0:00</option><option>0:30</option> etc </select>
var curDateTime = new Date()
var myVal = -curDateTime.getTimezoneOffset()/60
from an earlier script. So as he selects different GMT times, his local time appears beside his choice and updates as he selects different GMT times.