Project Home
Manuals
Contact Us
Download
Demo
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
AbanteCart v
1.4.0
is released.
Home
Help
Search
Calendar
Login
Register
AbanteCart Community
»
eCommerce construction
»
Installation and Configuration
»
Server Time Zone
« previous
next »
Print
Pages: [
1
]
Author
Topic: Server Time Zone (Read 4107 times)
trundle
Newbie
Posts: 20
Karma: +3/-0
Server Time Zone
«
on:
November 13, 2020, 06:06:07 PM »
How do I change the server time zone?
Logged
abantecart
Administrator
Hero Member
Posts: 4361
Karma: +300/-10
Re: Server Time Zone
«
Reply #1 on:
November 14, 2020, 03:38:58 PM »
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
Logged
Please
rate your experience
or
leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can
help
trundle
Newbie
Posts: 20
Karma: +3/-0
Re: Server Time Zone
«
Reply #2 on:
November 15, 2020, 01:08:47 PM »
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!
Logged
Print
Pages: [
1
]
« previous
next »
AbanteCart Community
»
eCommerce construction
»
Installation and Configuration
»
Server Time Zone
Powered by SMFPacks Social Login Mod