|
@@ -61,7 +61,7 @@ discard block |
|
|
block discarded – undo |
|
61
|
61
|
$allIssues = Issue::whereBetween('created_at', [ |
|
62
|
62
|
$startDate->copy()->subDays($daysToShow)->format('Y-m-d').' 00:00:00', |
|
63
|
63
|
$startDate->format('Y-m-d').' 23:59:59', |
|
64
|
|
- ])->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) use ($dateTimeZone) { |
|
|
64
|
+ ])->orderBy('created_at', 'desc')->get()->groupBy(function(Issue $issue) use ($dateTimeZone) { |
|
65
|
65
|
// If it's scheduled, get the scheduled at date. |
|
66
|
66
|
if ($issue->is_scheduled) { |
|
67
|
67
|
return (new Date($issue->scheduled_at)) |
|
@@ -82,7 +82,7 @@ discard block |
|
|
block discarded – undo |
|
82
|
82
|
} |
|
83
|
83
|
|
|
84
|
84
|
// Sort the array so it takes into account the added days |
|
85
|
|
- $allIssues = $allIssues->sortBy(function ($value, $key) { |
|
|
85
|
+ $allIssues = $allIssues->sortBy(function($value, $key) { |
|
86
|
86
|
return strtotime($key); |
|
87
|
87
|
}, SORT_REGULAR, true)->all(); |
|
88
|
88
|
|
Please login to merge, or discard this patch.