diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 91ff94681..908a5c82e 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1727,7 +1727,7 @@ class QueryController extends BaseController $begTime = strtotime($initBegTime); $endTime = strtotime($initEndTime); $endTime += 3600 * 24; - $nowTime = strtotime(date('Y-m-d 00:00:00', time())); + $nowTime = strtotime($nowTime); $promote = $this->getLoginPromote(); $levelPromote = $this->getLevelPromote(); @@ -1842,7 +1842,7 @@ class QueryController extends BaseController $this->assign('initBegTime', $initBegTime); $this->assign('initEndTime', $initEndTime); $this->assign('sort', $sort); - $this->assign('setdate', $nowTime); + $this->assign('setdate', date('Y-m-d', $nowTime)); $this->display('userRecharges'); } diff --git a/Application/Home/View/default/Query/userRecharges.html b/Application/Home/View/default/Query/userRecharges.html index abc69c383..98b80d789 100644 --- a/Application/Home/View/default/Query/userRecharges.html +++ b/Application/Home/View/default/Query/userRecharges.html @@ -123,7 +123,7 @@ - 今日充值 + 昨日充值 @@ -201,6 +201,7 @@ $(function(){ $(".select_gallery").select2(); var date = "{$setdate}"; + console.log(date); $('#sdate').datetimepicker({ format: 'yyyy-mm-dd', language: "zh-CN",