localeResolver = $localeResolver; $this->localeDate = $timezone; $this->refundedFactory = $refundedFactory; } /** * Refresh sales refunded report statistics for last day * * @return void */ public function execute() { $this->localeResolver->emulate(0); $currentDate = $this->localeDate->date(); $date = $currentDate->sub(new \DateInterval('PT25H')); $this->refundedFactory->create()->aggregate($date); $this->localeResolver->revert(); } }