dptoot / react-event-calendar

A React calendar component to display events
131 stars 55 forks source link

Fix bug whereby events crossing year boundary could be hidden #8

Closed optilude closed 8 years ago

optilude commented 8 years ago

Date maths is hard. :)

If you have an event that finishes in an earlier month in a later year, it could be hidden by the previous logic.

Feels like it should be possible to do this with moment().isBetween(), but it kind of gets a bit tricky because we don't check against a specific day.

optilude commented 8 years ago

Sorry, that was wrong. Let's try again.