Skip to content

Fix hard-coded scope store in codebase order model #31986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: 2.4-develop
Choose a base branch
from
4 changes: 2 additions & 2 deletions app/code/Magento/Sales/Model/Order.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2017 Adobe
* Copyright 2011 Adobe
* All Rights Reserved.
*/
namespace Magento\Sales\Model;
Expand Down Expand Up @@ -2142,7 +2142,7 @@ public function getCreatedAtFormatted($format)
$format,
$format,
$this->localeResolver->getDefaultLocale(),
$this->timezone->getConfigTimezone('store', $this->getStore())
$this->timezone->getConfigTimezone(ScopeInterface::SCOPE_STORE, $this->getStore())
);
}

Expand Down