Bug with adjacent-month days in next or previous year

Hi again :), i try fix bug here, there setted wrong class "next-month" or "last-month" to adjacent-month days, when they in next or previous year.