server/core/js/visitortimezone.js
2013-01-21 21:10:44 +01:00

4 lines
No EOL
145 B
JavaScript

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