You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2016/07/26 03:33:51 UTC

[32/55] [abbrv] kylin git commit: KYLIN-1905 datetimepicker init date update

KYLIN-1905 datetimepicker init date update


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/4bd685a6
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/4bd685a6
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/4bd685a6

Branch: refs/heads/1.5.x-CDH5.7
Commit: 4bd685a6a1577841c04c46ca07d907e158bb974a
Parents: 53face5
Author: Jason <ji...@163.com>
Authored: Tue Jul 19 18:47:22 2016 +0800
Committer: Jason <ji...@163.com>
Committed: Tue Jul 19 18:47:22 2016 +0800

----------------------------------------------------------------------
 webapp/app/js/directives/datetimepicker.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/4bd685a6/webapp/app/js/directives/datetimepicker.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/directives/datetimepicker.js b/webapp/app/js/directives/datetimepicker.js
index 4541836..b21822f 100644
--- a/webapp/app/js/directives/datetimepicker.js
+++ b/webapp/app/js/directives/datetimepicker.js
@@ -370,7 +370,7 @@
             var date = new Date();
             if(!modelValue){
               var tmp = new Date();
-              date = new Date(tmp.getFullYear(),tmp.getMonth()+1,tmp.getDate());
+              date = new Date(tmp.getFullYear(),tmp.getMonth(),tmp.getDate());
             }else{
               date = new Date(modelValue);
             }