| @@ -2,8 +2,9 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace FluentCart\App\Services\Report; |
| 4 | 4 | |
| 5 | 5 | use FluentCart\App\App; |
| 6 | +use FluentCart\App\Services\DateTime\DateFormatter; | |
| 6 | 7 | |
| 7 | 8 | class OrderReportService extends ReportService |
| 8 | 9 | { |
| 9 | 10 | public function groupBy($params = []) |
| @@ -273,9 +274,9 @@ | ||
| 273 | 274 | $structuredData = []; |
| 274 | 275 | $grossSaleByHour = []; |
| 275 | 276 | |
| 276 | 277 | for ($hour = 0; $hour < 24; $hour++) { |
| 277 | - $timeLabel = gmdate('g A', mktime($hour, 0)); | |
| 278 | + $timeLabel = gmdate(DateFormatter::hourFormat(), mktime($hour, 0)); | |
| 278 | 279 | $structuredData[$hour] = [ |
| 279 | 280 | 'hour' => $timeLabel, |
| 280 | 281 | 'Sunday' => 0, |
| 281 | 282 | 'Monday' => 0, |