0

The time is showing as incorrect for order emails, order grid, modified time of blocks and pages etc and all seem to be about an hour and 40 mins into the future. I have checked the time on the server to be correct and also checked what time the below outputs:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require __DIR__ . '/../app/bootstrap.php';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
$obj = $bootstrap->getObjectManager();
$state = $obj->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');

$time = $obj->get('\Magento\Framework\Stdlib\DateTime\DateTime');
dump("TIME:" . $time->gmtDate());

All the above show the correct time so am confused as to where this future time is coming from. My dev instance does not show this issue although is identical albeit with a different stack but was wondering what may be causing this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.