AbanteCart Community
eCommerce construction => Installation and Configuration => Topic started by: trundle on November 13, 2020, 06:06:07 PM
-
How do I change the server time zone?
-
You have 2 options below. I suggest option #1 as you want to minimize core code changes.
1. change on the php.ini side in your server:
https://www.inmotionhosting.com/support/website/setting-the-timezone-for-php-in-the-phpini-file/
2. Add line of code in the beginning of core/init.php file with something like this:
date_default_timezone_set('America/Los_Angeles');
https://github.com/abantecart/abantecart-src/blob/master/public_html/core/init.php
More about this solution:
https://www.php.net/manual/en/function.date-default-timezone-get.php
-
I found the file in the XAMPP - Apache Config - php.ini and that's where I made the change.
Thank you pointing me in the right direction!