PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/Services/Report/OrderReportService.php +2 -1 1.6.0 → 1.6.5 View file →
@@ -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,