Get system timezone in JavaScript

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

Leave a comment

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