Announcements not filtering in SilverStripe 3.1.5

Announcements weren't filtering correctly in SilverStripe 3.1.5. All announcements in the DB including past announcements were shown on every view; upcoming, day, week, month, etc. After small changes to getEventList() and UpcomingAnnouncements() announcements are filtered correctly.