mde / timezone-js

DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.
824 stars 183 forks source link

List of time zones ? #123

Closed fredgate closed 4 years ago

fredgate commented 10 years ago

Is there a way to get the list of all available time zones ? The file zone database downloaded from iana contains a file named zone.tab filled with all time zones. Is the content of this used ? If no, could it be ?

longlho commented 10 years ago

there's getAllZones that gives you back all the ones that have been loaded into the library at runtime.

fredgate commented 10 years ago

Ok. But does it give the time zones that have been loaded in the library, or all the time zones avilable ? The idea is to fill a select field with all the time zones, and then load the time zone selected by the user.

longlho commented 10 years ago

It gives the timezones loaded, which is all if you preload them all. For your use case I don't think the library supports it since there's no pulling down only "names" of timezones