Javascript: Afficher le fuseau horaire locale

Author:

Javascript: Afficher le fuseau horaire locale
Download

<html>
  <head>
 
  </head>
  <body>
    <html>
<head>
<script>
function getFuseau(){
  var today = new Date(); 
  offset = (today.getTimezoneOffset() / 60) + 1;  
  alert offset; 
}
</script>
</head>
 
<body>
<img src="logo.png" width="107" height="98" />
<form>
<input type="button" onclick="getFuseau()" value="Afficher le fuseau">
</form>
</body>
 
</html>
  </body>
</html>

Cet article Javascript: Afficher le fuseau horaire locale est apparu en premier sur .