// zone.js: the browser's own time zone into "Start a call"'s hidden zone // field, so the call's automatic title is in the starter's time rather // than the server's (handlers_meetings.go, callZone). Nothing else reads // it; without script the field stays empty and the title names its zone. (function () { var zone = ''; try { zone = Intl.DateTimeFormat().resolvedOptions().timeZone || ''; } catch (e) { zone = ''; } function fill() { var fields = document.querySelectorAll('input[data-calls-zone]'); for (var i = 0; i < fields.length; i++) fields[i].value = zone; } if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', fill); else fill(); })();