Skip to content

Commit 0cbba63

Browse files
MAGETWO-34934: Date product attribute value differs with admin on one day
1 parent 267c227 commit 0cbba63

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Eav/Model/Entity/Attribute/Frontend

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/Frontend/Datetime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function getValue(\Magento\Framework\Object $object)
4040

4141
if ($value) {
4242
$data = $this->_localeDate->formatDateTime(
43-
$this->_localeDate->date(new \DateTime($value)),
43+
new \DateTime($value),
4444
\IntlDateFormatter::MEDIUM,
4545
\IntlDateFormatter::NONE
4646
);

0 commit comments

Comments
 (0)