Monday, November 12, 2012

Update Linux timezone database

Update Linux timezone database

 Well, the Jordanian prime minister decision to keep the time zone as is before one day of the formal timezone change caused a lot of issues on our servers/applications production environment, because the time changed based on the time based on the old timezone database.

the solution for this issue was by updating the tz database on the servers, to do so here is the needed steps:

  • Download the latest tzdata file from the bellow link (from IANA):

  • untar the tzdata 
tar -xzvf tzdata2012i.tgz -C /tmp/
  • Then perform the following commands:
cd /tmp/
zic -d /tmp/zoneinfo asia
mv /etc/localtime /etc/localtime.old
mv /usr/share/zoneinfo/Asia/Amman /usr/share/zoneinfo/Asia/Amman.old
cp /tmp/zoneinfo/Asia/Amman /usr/share/zoneinfo/Asia/Amman
cp /usr/share/zoneinfo/Asia/Amman /etc/localtime

By that we updated the timezone for amman and we solved the problem that the prime minister caused :D .


No comments:

Post a Comment