Get timezone from users browser using moment(timezone).js
When using moment.js, use: var tz = moment.tz.guess(); It will return an IANA time zone identifier, such as America/Los_Angeles for the US Pacific time zone. It is documented here. Internally, it first tries to get the time zone from the browser using the following call: Intl.DateTimeFormat().resolvedOptions().timeZone If you are targeting only modern browsers that support … Read more