Your server's global time configuration cannot be changed, however, you can set the timezone for your website using hPanel or PHP function:

Setting up timezone via hPanel

Open Hosting Manage PHP Configuration page. There, open the PHP options tab and edit the date.timezone value:

If you are not sure which time zone to insert, check the Time Zone Map.

Save the changes at the bottom of the page, and the timezone will be updated successfully 🚀

Setting up timezone via PHP function

As an alternative to the previous option, you can set the timezone using date_default_timezone_set PHP function. Just check the List of Supported Timezones, find the one which you need, and insert the following code to your website (in most cases, to index.php):

echo date_default_timezone_get();


Did this answer your question?