makzumi / laravel-calendar

Flexible Calendar for Laravel 4
58 stars 31 forks source link

Support for Leap Years #29

Closed MarcosBL closed 2 years ago

MarcosBL commented 9 years ago

The library lacks support for leap years, for example Feb 2016 should be 29 days long, not 28, as you can see at http://www.timeanddate.com/calendar/monthly.html?year=2016&month=2&country=1

This change in my current fork intrduces support for that, I couldn't launch a request because I have made another custom changes (Spanish, first day of week, etc), but it's just a 2-lines copy & paste in Calendar.php, I thought it could help someone :

https://github.com/MarcosBL/laravel-calendar/commit/80e55b052d5bc707e6df2c7e65a1850922040fcd