From b65598d80c891b95b61cb023a47cf6d3f9f9194c Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 12 Aug 2016 01:22:14 +0200 Subject: * fixing last day of the month bug --- app/frontend/facades/CalendarFacade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/frontend/facades') diff --git a/app/frontend/facades/CalendarFacade.php b/app/frontend/facades/CalendarFacade.php index 1f78594..5a68f0a 100644 --- a/app/frontend/facades/CalendarFacade.php +++ b/app/frontend/facades/CalendarFacade.php @@ -203,7 +203,7 @@ class CalendarFacade extends Facade { if ($firstDayAfter->format('D') !== $firstDayOfTheWeek) { $firstDayAfter->modify('next ' . $firstDayOfTheWeek); } - $firstDayAfter->modify('-1 day'); + $firstDayAfter->modify('-1 second'); return [$firstDay, $firstDayAfter]; } -- cgit v1.2.3