Get system timezone in JavaScript

var myTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
console.log(myTimeZone);

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.