


Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Code: Select all
if (!ini_get('date.timezone')) {
date_default_timezone_set('UTC');
}
OpenCart®
PHP Developer.
更多中文教學在 OpenCart香港官方網站 !
QQ: 2039574815
i tried.. not workingyuno wrote:can change the code here? i haven't test.
opencart-2011\system\startup.php
line#10Code: Select all
if (!ini_get('date.timezone')) { date_default_timezone_set('UTC'); }
i dont hv the right to modify mysql timezone... i am using godaddy shared hostingdeepak21saini wrote:You can set local timezone from mysql even. You need to run code from phpmyadmin
SET GLOBAL time_zone = '+8:00';
Change according yours
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Error logs, admin recent activity etc. show time and it is easier to check those when you can see corrent time automaticly.Just 2 questions to all:
1. where do you need the time (should it be displayed somewhere)
2. what for do you need a local time
Only 'anyone' crying is not enough!iamafaker wrote:anyone???
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Users browsing this forum: Bing [Bot] and 52 guests