2013年9月30日 星期一

php, set timezone

Command:
sudo vi /etc/php.ini

...
expose_php = Off
memory_limit = 128M
date.timezone = Asia/Hong_Kong
...

Reference:
http://www.php.net/manual/en/timezones.php


AMI Linux, set timezone

This article teaches you how to set timezone in your AMI Linux Machine.

1. List out the timezone

 ls -F /usr/share/zoneinfo/


2. Setup timezone

 sudo ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime

3. Show the date
date