We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.4.2
Win10 / Chrome version 60.0.3112.90
2.4.2
https://jsfiddle.net/pj71jkyw/
Set fromat 'dd-MM-yyyy HH:mm a' and try chose some date range
i expect result like "16-08-2017 06:19 pm"
Actually look at the console, and you will see critical error: "TypeError: Cannot read property '0' of undefined"
because in "
element/src/utils/date.js
Line 251 in 463607f
in fecha.format function (line 251) we could see: var i18n = i18nSettings || fecha.i18n;
but in i18nSettings
"
element/packages/date-picker/src/util/index.js
Line 6 in 463607f
settings doesn't have amPm to convert like in code
(
Line 206 in 463607f
a: [word, function (d, v, i18n) { var val = v.toLowerCase(); if (val === i18n.amPm[0]) { d.isPm = false; } else if (val === i18n.amPm[1]) { d.isPm = true; } }],
The text was updated successfully, but these errors were encountered:
Fixed in #6574
Sorry, something went wrong.
No branches or pull requests
Element UI version
1.4.2
OS/Browsers version
Win10 / Chrome version 60.0.3112.90
Vue version
2.4.2
Reproduction Link
https://jsfiddle.net/pj71jkyw/
Steps to reproduce
Set fromat 'dd-MM-yyyy HH:mm a'
and try chose some date range
What is Expected?
i expect result like "16-08-2017 06:19 pm"
What is actually happening?
Actually look at the console, and you will see critical error: "TypeError: Cannot read property '0' of undefined"
because in "
element/src/utils/date.js
Line 251 in 463607f
in fecha.format function (line 251)
we could see:
var i18n = i18nSettings || fecha.i18n;
but in i18nSettings
"
element/packages/date-picker/src/util/index.js
Line 6 in 463607f
settings doesn't have amPm to convert like in code
(
element/src/utils/date.js
Line 206 in 463607f
a: [word, function (d, v, i18n) {
var val = v.toLowerCase();
if (val === i18n.amPm[0]) {
d.isPm = false;
} else if (val === i18n.amPm[1]) {
d.isPm = true;
}
}],
The text was updated successfully, but these errors were encountered: