SpongeBobSun / mCalendarView

Customizable & Shrinkable Calendar Widget for Android
Apache License 2.0
243 stars 73 forks source link

OnDateClickListener returning an incorrect date #78

Open zhangzhu95 opened 4 years ago

zhangzhu95 commented 4 years ago

I scrolled to January of 2020, and I noticed that when I choose 30 or 31 of december 2019, the library is telling that the year of that date belongs to 2020, which is incorrect.

Steps to reproduce :

  1. Scroll to January 2020
  2. Choose 30/12/2019

Actual Result: The OnDateClickListener is returning a DateData with the year 2020

Expected Result: The OnDateClickListener should return a DateData with the year 2019.