You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by zh...@apache.org on 2016/07/19 10:48:31 UTC
kylin git commit: KYLIN-1905 datetimepicker init date update
Repository: kylin
Updated Branches:
refs/heads/v1.5.3-release 53face5a4 -> 4bd685a6a
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/v1.5.3-release
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);
}