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 57dda2e commit 05fae71Copy full SHA for 05fae71
app/code/Magento/Security/Model/ResourceModel/UserExpiration.php
@@ -64,12 +64,13 @@ protected function _construct()
64
*
65
* @param \Magento\Framework\Model\AbstractModel $userExpiration
66
* @return $this
67
+ * @throws \Magento\Framework\Exception\LocalizedException
68
*/
69
protected function _beforeSave(\Magento\Framework\Model\AbstractModel $userExpiration)
70
{
71
/** @var $userExpiration \Magento\Security\Model\UserExpiration */
72
$expiresAt = $userExpiration->getExpiresAt();
- $utcValue = $this->dateTime->gmtDate(null, $expiresAt);
73
+ $utcValue = $this->timezone->convertConfigTimeToUtc($expiresAt);
74
$userExpiration->setExpiresAt($utcValue);
75
76
return $this;
0 commit comments