Ver Fonte

red stats2

amic há 1 ano atrás
pai
commit
85bc3c7041
1 ficheiros alterados com 1 adições e 1 exclusões
  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 = '';