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 60cd61b commit 9d09177Copy full SHA for 9d09177
lib/internal/Magento/Framework/Data/Form/Element/Date.php
@@ -101,7 +101,7 @@ public function setValue($value)
101
try {
102
if (preg_match('/^[0-9]+$/', $value)) {
103
$this->_value = (new \DateTime())->setTimestamp($this->_toTimestamp($value));
104
- } else if (is_string($value) && $this->isDate($value)) {
+ } elseif (is_string($value) && $this->isDate($value)) {
105
$this->_value = new \DateTime($value, new \DateTimeZone($this->localeDate->getConfigTimezone()));
106
} else {
107
$this->_value = '';
0 commit comments