Detect the standard time, the daylight saving time for the time zone

I was looking for a way how to detect the Dayligth Saving Time in JavaScript and I have found the following solution

if (timezonedetect.hasDaylightSavingTime()) {
  console.log('You have daylight saving time in your timezone');
} else {
  console.log('You DO NOT have daylight saving time in your timezone');
}

console.log('Your standard time zone offset in second is ' + jsk.tz.standardTime());
console.log('Your standard time zone offset is : ' + jsk.tz.standardTimeToString());

Visit the github project url to see the full documentation and download: https://github.com/dsimard/timezonedetect