Skip to content

Commit

Permalink
Show current date in trend (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysanthos committed Oct 27, 2022
1 parent 408e67e commit 04f69c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FutureTrend.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected function getAggregateStartingDate($request, $unit, $timezone)
return $now->startOfWeek()->setTime(0, 0);

case 'day':
return $now->setTime(0, 0);
return $now->subDay()->setTime(0, 0);

case 'hour':
return with($now->addHours(24), function ($now) {
Expand Down

0 comments on commit 04f69c8

Please sign in to comment.