Skip to content

Commit 3d07227

Browse files
ENGCOM-1270: Fix: Datepicker problem when using non en-US locale. #14627
- Merge Pull Request #14627 from tao-s/magento2:patch-1 - Merged commits: 1. 85c2deb
2 parents d08e39e + 85c2deb commit 3d07227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/utils/misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ define([
251251
convertToMomentFormat: function (format) {
252252
var newFormat;
253253

254-
newFormat = format.replace(/yy|y/gi, 'YYYY'); // replace the year
254+
newFormat = format.replace(/yyyy|yy|y/, 'YYYY'); // replace the year
255255
newFormat = newFormat.replace(/dd|d/g, 'DD'); // replace the date
256256

257257
return newFormat;

0 commit comments

Comments
 (0)