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 1d2f444 commit b751792Copy full SHA for b751792
lib/web/mage/utils/misc.js
@@ -245,7 +245,7 @@ define([
245
convertToMomentFormat: function (format) {
246
var newFormat;
247
248
- newFormat = format.replace(/yy|y/gi, 'YYYY'); // replace the year
+ newFormat = format.replace(/yyyy|yy|y/, 'YYYY'); // replace the year
249
newFormat = newFormat.replace(/dd|d/g, 'DD'); // replace the day
250
251
return newFormat;
0 commit comments