From a2f03f1fa60ef20f4cb619e10005ccfe0cb704f3 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 19 Apr 2018 17:25:10 +0800 Subject: [PATCH] BI-18606 --- dist/bundle.js | 4 ++-- dist/widget.js | 4 ++-- src/widget/dynamicdate/dynamicdate.popup.js | 2 +- src/widget/dynamicdatetime/dynamicdatetime.popup.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index 30ccd4a1c..c87f67dab 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -91081,7 +91081,7 @@ BI.shortcut("bi.dynamic_date_param_item", BI.DynamicDateParamItem);BI.DynamicDat var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue()); self.ymd.setValue({ year: date.getFullYear(), - month: date.getMonth(), + month: date.getMonth() + 1, day: date.getDate() }); self._setInnerValue(); @@ -91799,7 +91799,7 @@ BI.extend(BI.DynamicDateTimeCombo, { var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue()); self.ymd.setValue({ year: date.getFullYear(), - month: date.getMonth(), + month: date.getMonth() + 1, day: date.getDate() }); self.timeSelect.setValue(); diff --git a/dist/widget.js b/dist/widget.js index 76de4e0a8..648af69aa 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -3944,7 +3944,7 @@ BI.shortcut("bi.dynamic_date_param_item", BI.DynamicDateParamItem);BI.DynamicDat var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue()); self.ymd.setValue({ year: date.getFullYear(), - month: date.getMonth(), + month: date.getMonth() + 1, day: date.getDate() }); self._setInnerValue(); @@ -4662,7 +4662,7 @@ BI.extend(BI.DynamicDateTimeCombo, { var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue()); self.ymd.setValue({ year: date.getFullYear(), - month: date.getMonth(), + month: date.getMonth() + 1, day: date.getDate() }); self.timeSelect.setValue(); diff --git a/src/widget/dynamicdate/dynamicdate.popup.js b/src/widget/dynamicdate/dynamicdate.popup.js index 0efc24f10..271eae8dd 100644 --- a/src/widget/dynamicdate/dynamicdate.popup.js +++ b/src/widget/dynamicdate/dynamicdate.popup.js @@ -132,7 +132,7 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, { var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue()); self.ymd.setValue({ year: date.getFullYear(), - month: date.getMonth(), + month: date.getMonth() + 1, day: date.getDate() }); self._setInnerValue(); diff --git a/src/widget/dynamicdatetime/dynamicdatetime.popup.js b/src/widget/dynamicdatetime/dynamicdatetime.popup.js index 8342ac6b8..701f05a9d 100644 --- a/src/widget/dynamicdatetime/dynamicdatetime.popup.js +++ b/src/widget/dynamicdatetime/dynamicdatetime.popup.js @@ -143,7 +143,7 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, { var date = BI.DynamicDateHelper.getCalculation(self.dynamicPane.getValue()); self.ymd.setValue({ year: date.getFullYear(), - month: date.getMonth(), + month: date.getMonth() + 1, day: date.getDate() }); self.timeSelect.setValue();