Browse Source

update

master
windy 7 years ago
parent
commit
456eed4e03
  1. 6
      bi/core.js
  2. 6
      dist/bundle.js
  3. 80
      dist/bundle.min.js
  4. 6
      dist/core.js
  5. 6
      src/core/proto/date.js

6
bi/core.js

@ -21311,13 +21311,13 @@ Date.parseDateTime = function (str, fmt) {
Date.getDate = function () {
var dt = new (Function.prototype.bind.apply(Date, BI.concat([null], [].slice.apply(arguments))))();
if (arguments.length > 0 || BI.isNull(Date.timeZone)) {
return dt;
} else {
if(BI.isNotNull(Date.timeZone) && (arguments.length === 0 || (arguments.length === 1 && BI.isNumber(arguments[0])))){
var localTime = dt.getTime();
var localOffset = dt.getTimezoneOffset() * 60000; //获得当地时间偏移的毫秒数
var utc = localTime + localOffset; //utc即GMT时间标准时区
return new Date(utc + Date.timeZone);//+ Pool.timeZone.offset);
}else{
return dt;
}
};
/*

6
dist/bundle.js vendored

@ -21311,13 +21311,13 @@ Date.parseDateTime = function (str, fmt) {
Date.getDate = function () {
var dt = new (Function.prototype.bind.apply(Date, BI.concat([null], [].slice.apply(arguments))))();
if (arguments.length > 0 || BI.isNull(Date.timeZone)) {
return dt;
} else {
if(BI.isNotNull(Date.timeZone) && (arguments.length === 0 || (arguments.length === 1 && BI.isNumber(arguments[0])))){
var localTime = dt.getTime();
var localOffset = dt.getTimezoneOffset() * 60000; //获得当地时间偏移的毫秒数
var utc = localTime + localOffset; //utc即GMT时间标准时区
return new Date(utc + Date.timeZone);//+ Pool.timeZone.offset);
}else{
return dt;
}
};
/*

80
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

6
dist/core.js vendored

@ -21311,13 +21311,13 @@ Date.parseDateTime = function (str, fmt) {
Date.getDate = function () {
var dt = new (Function.prototype.bind.apply(Date, BI.concat([null], [].slice.apply(arguments))))();
if (arguments.length > 0 || BI.isNull(Date.timeZone)) {
return dt;
} else {
if(BI.isNotNull(Date.timeZone) && (arguments.length === 0 || (arguments.length === 1 && BI.isNumber(arguments[0])))){
var localTime = dt.getTime();
var localOffset = dt.getTimezoneOffset() * 60000; //获得当地时间偏移的毫秒数
var utc = localTime + localOffset; //utc即GMT时间标准时区
return new Date(utc + Date.timeZone);//+ Pool.timeZone.offset);
}else{
return dt;
}
};
/*

6
src/core/proto/date.js

@ -559,12 +559,12 @@ Date.parseDateTime = function (str, fmt) {
Date.getDate = function () {
var dt = new (Function.prototype.bind.apply(Date, BI.concat([null], [].slice.apply(arguments))))();
if (arguments.length > 0 || BI.isNull(Date.timeZone)) {
return dt;
} else {
if(BI.isNotNull(Date.timeZone) && (arguments.length === 0 || (arguments.length === 1 && BI.isNumber(arguments[0])))){
var localTime = dt.getTime();
var localOffset = dt.getTimezoneOffset() * 60000; //获得当地时间偏移的毫秒数
var utc = localTime + localOffset; //utc即GMT时间标准时区
return new Date(utc + Date.timeZone);//+ Pool.timeZone.offset);
}else{
return dt;
}
};

Loading…
Cancel
Save