Skip to content

Instantly share code, notes, and snippets.

@uda
Last active December 22, 2015 13:59
Show Gist options
  • Save uda/6482874 to your computer and use it in GitHub Desktop.
Save uda/6482874 to your computer and use it in GitHub Desktop.
#!/bin/bash
DB=tzdata2013d
TZ=Asia/Jerusalem
ZI=/usr/share/zoneinfo/
wget -q http://www.iana.org/time-zones/repository/releases/${DB}.tar.gz
mkdir ${DB}
cd ${DB}
tar xzf ../${DB}.tar.gz
zic -d zoneinfo asia
cp zoneinfo/${TZ} ${ZI}${TZ}
cp zoneinfo/${TZ} /etc/localtime
cd ..
rm -R ${DB}*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment