Creating a new Timezone

There may be times where a new timezone is needed, where in my case, the timezone for a country was not available (Myanmar).

To create a new timezone, I did the following:

$ vim

Added the line:
Zone Myanmar 6:30 - MST

Saved and exited.

$ sudo zic -d /usr/share/zoneinfo/Asia

This then created the timezone for me.

$ sudo mv /etc/localtime /etc/localtime.old
$ sudo cp /usr/share/zoneinfo/Asia/Myanmar /etc/localtime

Once this was done, I checked using date:

$ date
Thu Jun 16 21:11:39 MST 2016

Which was just super.

Show CommentsClose Comments

Leave a comment