Repository: kylin
Updated Branches:
  refs/heads/master f8745f35d -> 1cd4ad8c1


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/1cd4ad8c
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/1cd4ad8c
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/1cd4ad8c

Branch: refs/heads/master
Commit: 1cd4ad8c10282a63ac2fc8258e9a5d09077bd460
Parents: f8745f3
Author: Jason <jiat...@163.com>
Authored: Tue Jul 19 18:49:10 2016 +0800
Committer: Jason <jiat...@163.com>
Committed: Tue Jul 19 18:49:10 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/1cd4ad8c/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);
             }

Reply via email to