Time Zone

The purpose of this document is to show how to change the time zone.

Change time zone to UTC:

  • timezone="Etc/UTC"

  • rm /etc/localtime && ln -s "/usr/share/zoneinfo/${timezone}" /etc/localtime && echo "${timezone}" > /etc/sysconfig/clock && /sbin/hwclock --systohc

Change time zone to PT:

  • timezone="America/Los_Angeles"

  • rm /etc/localtime && ln -s "/usr/share/zoneinfo/${timezone}" /etc/localtime && echo "${timezone}" > /etc/sysconfig/clock && /sbin/hwclock --systohc

[Edit]