Hi,
Thanks.
So for the order SF05273, the timestamp 1513840307 corresponds to 2017-12-21 07:11:47 UTC (
www.unixtimestamp.com/index.php
)
The code of the statistics system is:
'DATE_FORMAT(FROM_UNIXTIME(CAST(hk_order.order_invoice_created AS SIGNED)'.$this->timeoffsetStr.'),\'{DATE_FORMAT}\') as axis';
So that means that the system interprets that 1513840307 with something like that:
SELECT DATE_FORMAT(FROM_UNIXTIME(CAST(1513840307 AS SIGNED)+28800), '%Y-%m-%d %T')
On my end, this MySQL query results in: 2017-12-21 16:11:47
So this means that there is the timezone shift of Joomla plus the one from mysql (UTC+1) as it should normally output 2017-12-21 15:11:47
So let's try this:
Add the code:
$this->db->setQuery('SET @@session.time_zone = \'+00:00\'');
$this->db->query();
before the line:
$this->db->setQuery($query, $offset, $limit);
in the file administrator/components/com_hikashop/classes/statistics.php
That should remove the timezone issue.