Where do you get Olson timezone database files that work with timezone-js?

According to readme for timezone-js:

http://github.com/mde/timezone-js

you need to download the Olson timezone database and save the files in a directory on your web server so that timezone-js can work with them.

Where do you get the Olson database files referenced by this project?

+5
source share
3 answers

Due to copyright lawsuit in the time zone database, old sources are not available. On October 14, 2011, the Internet Assigned Numbers Authority (IANA), a division of ICANN, claimed responsibility for maintaining the Time Zone database.

http://www.iana.org/time-zones

+15

(IANA). bash script ftp- olson timezone

#!/bin/bash

# Load the files from the iana.org site.
wget --retr-symlinks 'ftp://ftp.iana.org/tz/tz*-latest.tar.gz'

# Unzip them
gzip -dc tzcode*.tar.gz | tar -xf -
gzip -dc tzdata*.tar.gz | tar -xf -

# Optionally, remove the downloaded files
rm tz*-latest.tar.gz
+4

This may not be the exact answer to this specific question, but I think it's worth paying attention to: http://momentjs.com/timezone/data/

Timezone data creator is really easy to use:

enter image description here

+2
source

All Articles