<html> <body> <button onclick="var myDate = new Date(); alert(myDate.getTimezoneOffset());"> get time zone offset </button> </body> </html>