var myDate = new Date()var timeZone = myDate.getTimezoneOffset()
Note:Running this example in the United Kingdom will return the value 0 (zero) if the computer’s time zone has been set to GMT. Close
Running this example in the United Kingdom will return the value 0 (zero) if the computer’s time zone has been set to GMT.