getTimezoneOffset < Date < JavaScript
The getTimezoneOffset() method of the Date object returns the difference between Universal Coordinated Time (UTC) and local time in minutes. Value is not constant because of Daylight Savings Time.
const date = new Date();
const timeZoneOffset = date.getTimezoneOffset();
console.log(timeZoneOffset);
// 300