nextcloud/core/js/visitortimezone.js

5 lines
146 B
JavaScript

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