Skip to content

Commit aecb20b

Browse files
committed
MAGETWO-70921: Date sets to 2020 year after save
1 parent 6cb2ee5 commit aecb20b

File tree

2 files changed

+1
-2
lines changed
  • app/code/Magento/Ui/Test/Unit/Component/Form/Element/DataType
  • lib/web/mage/utils

2 files changed

+1
-2
lines changed

app/code/Magento/Ui/Test/Unit/Component/Form/Element/DataType/DateTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ public function testPrepareWithoutTimeOffset()
117117
$this->assertArrayHasKey('options', $config);
118118
$this->assertArrayHasKey('dateFormat', $config['options']);
119119
$this->assertEquals($localeDateFormat, $config['options']['dateFormat']);
120-
121120
}
122121

123122
/**

lib/web/mage/utils/misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ define([
246246
var newFormat;
247247

248248
newFormat = format.replace(/yy|y/gi, 'YYYY'); // replace the year
249-
newFormat = newFormat.replace(/dd|d/g, 'DD'); // replace the date
249+
newFormat = newFormat.replace(/dd|d/g, 'DD'); // replace the day
250250

251251
return newFormat;
252252
}

0 commit comments

Comments
 (0)