Source

jsTimezoneDetect / test / test.html

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript" src="../jstz.js"></script>
    <script type="text/javascript">
         var TimeZoneTester = function () {
             var self = this;
             
             self.tested_timezones = [];
             
             self.detect = function () {
                 var tz_name = jstz.determine().name();
             };
         };
        function detect() {
            var tz = jstz.determine();
            
            setTimeout("window.location.reload()", 2000);
        }
    </script>
</head>
<body onload="detect()">
</body>
</html>