diff --git a/tz_detect/static/tz_detect/js/tzdetect.js b/tz_detect/static/tz_detect/js/tzdetect.js index bc25692..597a63c 100644 --- a/tz_detect/static/tz_detect/js/tzdetect.js +++ b/tz_detect/static/tz_detect/js/tzdetect.js @@ -66,7 +66,9 @@ xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); xmlHttp.setRequestHeader(window.csrf_header_name, window.csrf_token); xmlHttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); - xmlHttp.send("offset=" + (new Date()).getTimezoneOffset() + '&timezone=' + Intl.DateTimeFormat().resolvedOptions().timeZone); + xmlHttp.send("offset=" + (new Date()).getTimezoneOffset() + + '&timezone=' + encodeURIComponent(Intl.DateTimeFormat().resolvedOptions().timeZone) + ); } }()); \ No newline at end of file