How to set PHP timezone

The default server timezone is UTC (Coordinated Universal Time).

How to change programmatically

date_default_timezone_set("Asia/Tokyo");

By writing the above function in the program, it is possible to change the time zone.
See PHP: date_default_timezone_set - Manual (external page) for details.

How to change in php.ini

You can also change the time zone by adding the following description in php.ini.

date.timezone = "Asia/Tokyo"

Please refer to the following article for how to edit php.ini.

How to edit php.ini

About support contents

We are very sorry, but programs created by customers are not supported.
Please refer to our support policy for details on what is supported.

 

Was this article helpful?
2 out of 5 found this helpful