Skip to content

Commit

Permalink
chore: update time zone database to 2025a in README and rebuild script
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Jan 27, 2025
1 parent 0cd3cc6 commit 853d32e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This is a fork of [darkskyapp/tz-lookup](https://github.com/darkskyapp/tz-lookup
The following updates have been made to this fork:

- The time zone database uses
[2024b](https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2024b). Expect a bunch of changes if you're upgrading from the original `tz-lookup`, including new zone names and shapes.
[2025a](https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2025a). Expect a bunch of changes if you're upgrading from the original `tz-lookup`, including new zone names and shapes.

- TypeScript types are now included.

Expand Down
6 changes: 4 additions & 2 deletions rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -ex

# Remember to update the README.md with the new version!
# Latest release is here: https://github.com/evansiroky/timezone-boundary-builder/releases
TZ="2024b"
TZ="2025a"

rm -rf timezones.geojson.zip dist ne_10m_urban_areas.*
curl -L --retry 3 -C - \
Expand All @@ -18,6 +18,8 @@ curl -L --retry 3 -C - \
# -o: overwrite existing files
# -u: update existing files and create new ones if needed
unzip -o -u timezones.geojson.zip

# sudo apt install -y gdal-bin
ogr2ogr -f GeoJSON ne_10m_urban_areas.json ne_10m_urban_areas.shp
# pack.js takes about a minute to complete.

Expand All @@ -29,4 +31,4 @@ ogr2ogr -f GeoJSON ne_10m_urban_areas.json ne_10m_urban_areas.shp

# the packed sizes are very similar as most of the payload
# is the encoded quadtree.
node pack.js | ./node_modules/.bin/uglifyjs -mc >tz.js
time node pack.js | ./node_modules/.bin/uglifyjs -mc >tz.js
2 changes: 1 addition & 1 deletion tz.js

Large diffs are not rendered by default.

0 comments on commit 853d32e

Please sign in to comment.