forked from extern/egroupware
fix for month-name shortcuts different from the first 3-chars of the long name, because they would be indentical with the shortcut of an other monthname, eg. frensh Juin = Jun and Juillet = Jui
This commit is contained in:
parent
86a981c07c
commit
e269ccb9cb
@ -1447,6 +1447,12 @@ Calendar.prototype.parseDate = function (str, fmt) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "%b":
|
case "%b":
|
||||||
|
if (Calendar._SMN) { // if we have short month-names, use them
|
||||||
|
for (j = 0; j < 12; ++j) {
|
||||||
|
if (Calendar._SMN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) { m = j; break; }
|
||||||
|
}
|
||||||
|
if (j < 12) break;
|
||||||
|
}
|
||||||
case "%B":
|
case "%B":
|
||||||
for (j = 0; j < 12; ++j) {
|
for (j = 0; j < 12; ++j) {
|
||||||
if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) { m = j; break; }
|
if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) { m = j; break; }
|
||||||
|
Loading…
Reference in New Issue
Block a user