Q:

How to Correct Timezone

I set my vagrant server's timezone to Asia/Tokyo. However, though I made change in php.ini and restarted httpd, it doesn't return the correct time. The time is 9 hours late from correct time. When I change the time zone Europe/Berin, I see the time changes but it also doesn't return correct time.
Here is my php code
echo('<pre>');
var_dump(date("Y/m/d G:i:s"));
echo('</pre>');
exit;

php.ini
date.timezone = Asia/Tokyo

Are there any suggestions?

A:

I finally found the way out. The reason the code above didn't work was that my system clock was wrong, so I executed the command bellow.
First, I installed ntp.
sudo yum -y install ntp

Second, I got the correct time from ntp.
sudo ntpdate ntp.nict.jp

That's it. Thanks for suggestions!
A helpful link:
http://pyoonn.hatenablog.com/entry/2015/01/06/121925

