Get system timezone in JavaScript

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

Leave a comment

Please note, comments need to be approved before they are published.