This commit is contained in:
2026-04-24 12:18:50 +08:00
parent 54431cbeb1
commit 5f6bc93a46
2 changed files with 5 additions and 0 deletions
@@ -147,6 +147,10 @@ class ConversionLogic
$timeType = (string)($params['time_type'] ?? 'today');
switch ($timeType) {
case 'yesterday':
$startDate = date('Y-m-d', strtotime('-1 day'));
$endDate = $startDate;
break;
case 'week':
$startDate = date('Y-m-d', strtotime('-6 days'));
$endDate = $today;