Skip to content

Commit 624469b

Browse files
author
Igor Melnikov
committed
Merge branch 'MAGETWO-43960-custom-timezone-merged' into time-zone-pr
2 parents 235302f + 97790cc commit 624469b

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Backend/Block/Dashboard

1 file changed

+1
-1
lines changed

app/code/Magento/Backend/Block/Dashboard/Graph.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public function getChartUrl($directUrl = true)
387387
*/
388388
foreach ($this->_axisLabels[$idx] as $_index => $_label) {
389389
if ($_label != '') {
390-
$period = new \DateTime($_label);
390+
$period = new \DateTime($_label, new \DateTimeZone($timezoneLocal));
391391
switch ($this->getDataHelper()->getParam('period')) {
392392
case '24h':
393393
$this->_axisLabels[$idx][$_index] = $this->_localeDate->formatDateTime(

0 commit comments

Comments
 (0)