Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Website Help / PHP Questions / How to change the date.timezone value in PHP?

How to change the date.timezone value in PHP?

Last update: Aug 20, 2021

To set a specific date.timezone value in PHP set the following line in your php.ini file:

date.timezone = "US/Central"

Replace “US/Central” with the preferred timezone and the full list of supported timezones is available here.

Share this article