js get timezones code example
Example 1: js get iana timezone
console.log(Intl.DateTimeFormat().resolvedOptions().timeZone)
Example 2: client timezone offset in JavaScript
var clientTimezoneOffset = new Date().getTimezoneOffset()/60;//offset in hours
Example 3: get browser timezone javascript
Intl.DateTimeFormat().resolvedOptions().timeZone
Example 4: how to see my timezone using js
document.getElementById("time").innerHTML = Date().slice(Date().indexOf("(")+1,Date().lastIndexOf(")"));