Skip to content

Instantly share code, notes, and snippets.

@ikawka
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save ikawka/9107322 to your computer and use it in GitHub Desktop.

Select an option

Save ikawka/9107322 to your computer and use it in GitHub Desktop.
Change local timezone in CentOS
#make sure that you have updated tzdata
yum update tzdata
#check list of timezone
ls /usr/share/zoneinfo/
#replace the localtime with the new one
ZONEINFO=Asia/Manila
ln -sf /usr/share/zoneinfo/$ZONEINFO /etc/localtime
#Note: mysql keeps its own timezone database, to update run:
mysql_tzinfo_to_sql
http://dev.mysql.com/doc/refman/5.5/en/mysql-tzinfo-to-sql.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment