浏览代码

red stats2

amic 11 月之前
父节点
当前提交
85bc3c7041
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/manager/views/stats/index.php

+ 1 - 1
modules/manager/views/stats/index.php

@@ -11,7 +11,7 @@
 	$m = $m<10?"0$m":$m;
 	$d = $d<10?"0$d":$d;
 	$b_date = date("Y-".$m."-01 00:00:00");
-	$e_date = date("Y-".$m."-".$d."  23:59:59");
+	$e_date = date("Y-".$m."-".$d."  H:i:59");
 	//$newsonmath
 	$cmd = Yii::$app->db->createCommand("select count(id) as c, DATE_FORMAT(dt_pub, '%d') as day from news where `dt_pub` BETWEEN '".$b_date."' AND '".$e_date."' and active = 'Y' group by day")->queryAll();
 	$newsonday = '';