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.
2 parents b5ce9e2 + 3d07227 commit 97e6c95Copy full SHA for 97e6c95
lib/web/mage/utils/misc.js
@@ -271,7 +271,7 @@ define([
271
convertToMomentFormat: function (format) {
272
var newFormat;
273
274
- newFormat = format.replace(/yy|y/gi, 'YYYY'); // replace the year
+ newFormat = format.replace(/yyyy|yy|y/, 'YYYY'); // replace the year
275
newFormat = newFormat.replace(/dd|d/g, 'DD'); // replace the date
276
277
return newFormat;
0 commit comments