I need to get client side timezone using JavaScript. I am using below code.
new Date().toString().split('(')[1].slice(0, -1)
But it returns timezone daylightname, and I need id.
For example, client side timezone as set as (UTC-05:00) Eastern Time (US & Canada)
and I need to get output as Eastern Standard Time
. But I am getting Eastern Daylight Time
as output.
Can I do this without any additional plugin requirements?