diff options
author | emkael <emkael@tlen.pl> | 2016-08-12 01:22:14 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-08-12 01:22:14 +0200 |
commit | b65598d80c891b95b61cb023a47cf6d3f9f9194c (patch) | |
tree | e8f2a86207b3b535cd84a2bfadc9a8efa417b592 /app/frontend/facades | |
parent | 68e7bcd985e5b7f4a05a5c39a4ac9d1b79dfaf24 (diff) |
* fixing last day of the month bug
Diffstat (limited to 'app/frontend/facades')
-rw-r--r-- | app/frontend/facades/CalendarFacade.php | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |