How to change PHP timezone in Opencart 3?

(Last Updated On: December 23, 2020)

Well, sometimes the server is not at the same location as your country/website. And this causes issues with the time recorded for details related to the customers, orders, etc in the Database.

So how do we set up same time for the server as the website country in Opencart ?

You must login into your server via cPanel / plesk / Filezilla or Ssh.

Go to the below path:

Opencart root folder/system/config/default.php

Here find the line:

$_[‘date_timezone’] = ‘UTC’;

You can replace your timezone instead of UTC.
You can find the list of all timezones in PHP here:

https://www.php.net/manual/en/timezones.php

Leave a Reply

Your email address will not be published. Required fields are marked *