server/core/js/visitortimezone.js

4 lines
145 B
JavaScript
Raw Normal View History

2013-01-21 20:10:44 +00:00
$(document).ready(function () {
var visitortimezone = (-new Date().getTimezoneOffset() / 60);
$('#timezone-offset').val(visitortimezone);
});