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