diff --git a/az-webank-homepage/src/web/js/home-page.js b/az-webank-homepage/src/web/js/home-page.js index cbeb70a..6f1e47b 100755 --- a/az-webank-homepage/src/web/js/home-page.js +++ b/az-webank-homepage/src/web/js/home-page.js @@ -112,6 +112,13 @@ $(function () { }); +var todayFormat = function () { + var date = new Date(); + var year = date.getFullYear(); + var month = getTwoDigitStr(date.getMonth() + 1); + var day = getTwoDigitStr(date.getDate()); + return month + "/" + day + "/" + year; +} function getTodayExecFlowData (myChart) { var requestURL = contextURL + "/homepage"; @@ -146,12 +153,14 @@ function getTodayExecFlowData (myChart) { averageTime = "Average Time"; totalTasks = "Total Jobs"; } + var begin = todayFormat() + " 12:00 AM"; + var end = todayFormat() + " 11:59 PM"; $("#success-td").html( "