server/core/js/visitortimezone.js
2013-08-18 11:06:59 +02:00

4 lines
146 B
JavaScript

$(document).ready(function () {
var visitortimezone = (-new Date().getTimezoneOffset() / 60);
$('#timezone-offset').val(visitortimezone);
});