Returns the number of minutes that the local time zone is off set from UTC. For example, Eastern Standard Time returns 300. This value changes when an area goes into Daylight Saving Time.
var myDate = new Date();
console.log(myDate.getTimezoneOffset());
The code above generates the following result.