Post by molizh » Sun Jan 10, 2016 1:51 am

How setting store time use PHP/Database time ?

My PHP serve time (GMT+8)

admin/controller/sale/order.php
find:

Code: Select all

'date_added'    => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
and change to:

Code: Select all

'date_added'    => date($this->language->get('datetime_format'), strtotime($result['date_added'])),
But the display is not my serve time.

Anyone know what is the problem?

Newbie

Posts

Joined
Tue Jun 02, 2015 4:03 pm

Post by grgr » Sun Jan 10, 2016 4:18 pm

Have you tried adding the correct timezone in ../system/startup.php

change

Code: Select all

if (!ini_get('date.timezone')) {
	date_default_timezone_set('UTC');
}

to:

Code: Select all

	date_default_timezone_set('YOUR TIMEZONE HERE');

-
Image Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by molizh » Tue Jan 12, 2016 12:54 am

Thanks your help. :)
It work fine.

Newbie

Posts

Joined
Tue Jun 02, 2015 4:03 pm
Who is online

Users browsing this forum: No registered users and 51 guests