Skip to content

Commit 798e62f

Browse files
ENGCOM-1395: [Forwardport] Fix: Datepicker problem when using non en-US locale. #14866
- Merge Pull Request #14866 from rostyslav-hymon/magento2:2.3-develop-PR-port-14627 - Merged commits: 1. 3d5a46a
2 parents 18a7e29 + 3d5a46a commit 798e62f

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
@@ -271,7 +271,7 @@ define([
271271
convertToMomentFormat: function (format) {
272272
var newFormat;
273273

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

277277
return newFormat;

0 commit comments

Comments
 (0)