Skip to content

Commit f2253cb

Browse files
committed
MAGETWO-37607: "New Accounts Report" incorrectly displays 'Interval' date corresponding to 'New Accounts'
1 parent cfd4abf commit f2253cb

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

app/code/Magento/Reports/Model/Resource/Report/Collection.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -349,20 +349,7 @@ public function getReports()
349349
}
350350
return $this->_reports;
351351
}
352-
353-
/**
354-
* Retrieve time shift
355-
*
356-
* @param string $datetime
357-
* @return string
358-
*/
359-
public function timeShift($datetime)
360-
{
361-
return $this->_localeDate->scopeDate(null, $datetime, true)
362-
->setTimezone(new \DateTimeZone('UTC'))
363-
->format('Y-m-d H:i:s');
364-
}
365-
352+
366353
/**
367354
* Load data
368355
*

dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_methods.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,4 +2182,5 @@
21822182
],
21832183
['getIdentities', 'Magento\Sales\Block\Reorder\Sidebar'],
21842184
['assignData', 'Magento\OfflinePayments\Model\Checkmo'],
2185+
['timeShift', 'Magento\Reports\Model\Resource\Report\Collection'],
21852186
];

0 commit comments

Comments
 (0)