Skip to content

Commit

Permalink
Unexpected data found fix (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Dec 10, 2024
1 parent 07dd336 commit 6cd4aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ViewDirectives/BannersDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ private function checkSchedulingDate($banner)
$from = Carbon::createFromFormat('Y-m-d H:i:s', $banner->from_date, $timezone);
$to = Carbon::createFromFormat('Y-m-d H:i:s', $banner->to_date, $timezone);

return Carbon::createFromFormat('Y-m-d H:i:s', Carbon::now()->setTimezone($timezone), $timezone)->between($from, $to);
return Carbon::now()->setTimezone($timezone)->between($from, $to);
}
}

0 comments on commit 6cd4aaf

Please sign in to comment.