We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccae842 commit 891bdc7Copy full SHA for 891bdc7
app/code/Magento/Shipping/Model/Observer.php
@@ -37,8 +37,8 @@ public function __construct(
37
public function aggregateSalesReportShipmentData()
38
{
39
$this->_localeResolver->emulate(0);
40
- $currentDate = $this->_coreLocale->date();
41
- $date = $currentDate->subHour(25);
+ $currentDate = new \DateTime();
+ $date = $currentDate->modify('-25 hours');
42
$this->_shippingFactory->create()->aggregate($date);
43
$this->_localeResolver->revert();
44
return $this;
0 commit comments