apptreesoftware/flutter_calendar

Days in April shifted one day (timezone issue)

boskokg opened this issue · 2 comments

You have one issue with the april 2019. The month starts at Monday but your Widget shows it as Tuesday (image attached).
I investigated the code and found that Utils.daysInMonth returns one more day (it is the bug in their code because the method is not aware of TimeZone). You expect that daysInMonth should return list with Sunday as the first element but this method returned Saturday as the first day in the array.

0-02-04-b5306e847742d5caa11667a60cce1de3e06c129b3ca18faaf58b8f073bca77b8_1c6d937303306c

AlbCM commented

I guess it was fixed, wasn't it ?

here is the issue: johnpryan/date_utils#10