Skip to content
Advertisement

Tag: timezone-offset

Why So Many IANA Time Zones Names?

Javascript allows you to see what time it is in another timezone if you specify the IANA given name of that timezone. For example: Below you can see that IANA provides multiple names within each general timezone: Why is that necessary? For example, both America/Detroit and America/New_York are (generally) in the Eastern Time Zone. Why don’t these two locations share

JavaScript check if timezone name valid or not

Is there a way to check if timezone name valid or not in JavaScript without using external library? When user enters timezone name in text field I want to verify whether zone is valid or not? I know we can do it easily using moment-timezone library. But I don’t want to use any extra library. I’m looking for pure JavaScript

Advertisement