Skip to content

Commit 9d09177

Browse files
MAGETWO-98886: Gift Card Accounts: expiration date subtracts one day
1 parent 60cd61b commit 9d09177

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/Data/Form/Element

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Data/Form/Element/Date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function setValue($value)
101101
try {
102102
if (preg_match('/^[0-9]+$/', $value)) {
103103
$this->_value = (new \DateTime())->setTimestamp($this->_toTimestamp($value));
104-
} else if (is_string($value) && $this->isDate($value)) {
104+
} elseif (is_string($value) && $this->isDate($value)) {
105105
$this->_value = new \DateTime($value, new \DateTimeZone($this->localeDate->getConfigTimezone()));
106106
} else {
107107
$this->_value = '';

0 commit comments

Comments
 (0)