@@ -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 = '';