* Fix date filter with same begin and end.

This commit is contained in:
zhouxin
2024-03-18 14:33:28 +08:00
parent fb7eb781e2
commit 7d65fab7a0
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -648,6 +648,9 @@ class chartModel extends model
if(empty($begin) or empty($end)) break;
$begin = date('Y-m-d 00:00:00', strtotime($begin));
$end = date('Y-m-d 23:59:59', strtotime($end));
$value = "'$begin' and '$end'";
$filterFormat[$field] = array('operator' => 'BETWEEN', 'value' => $value);
break;