Browse Source

REPORT-83685 fix: BI.parseDateTime方法对%l:%M:%S %p这种格式的日期解析出错(后面带%p 这种的都是同类型的报错)

research/test
zsmj 2 years ago committed by Kitetop
parent
commit
7787330045
  1. 4
      src/core/2.base.js

4
src/core/2.base.js

@ -1079,7 +1079,7 @@
case "%b":
case "%B":
for (j = 0; j < 12; ++j) {
if (BI.Date._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) {
if (BI.getMonthName(j).substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) {
m = j;
break;
}
@ -1144,7 +1144,7 @@
if (a[i].search(/[a-zA-Z]+/) != -1) {
var t = -1;
for (j = 0; j < 12; ++j) {
if (BI.Date._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) {
if (BI.getMonthName(j).substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) {
t = j;
break;
}

Loading…
Cancel
Save