rwbr / flutter_neat_and_clean_calendar

Simple and clean flutter calendar with ability to slide up/down to show weekly/monthly calendar. Forked from [flutter_clean_calender](https://pub.dev/packages/flutter_clean_calendar)
MIT License
104 stars 51 forks source link

Previous week then selected date wrong one date late #43

Closed Kimsoer closed 8 months ago

Kimsoer commented 1 year ago

Dear team , I would like to thank for your great library, I have issue while selected after previous week one time, it will wrong one date late example i selected 02-10-2022 but it show 01-10-2022. thank you

rwbr commented 1 year ago

Thank you for your feedback. Could you please give me some more information? How can I reproduce the faulty behavior? Please describe the steps to reproduce the bug in detail.

Kimsoer commented 1 year ago

Thank for response my message , The steps are : 1.Open as Expanded = false it will show one week

Screen Shot 2022-10-04 at 1 23 19 PM

2.Press arrow to previous week

Screen Shot 2022-10-04 at 1 24 42 PM

3.Click selected on 02- sept-2022 but the data result of selected is 01-sept-2022

Screen Shot 2022-10-04 at 1 26 46 PM

Please see my print log result :

Screen Shot 2022-10-04 at 1 26 22 PM
rwbr commented 1 year ago

Great. Thank you, I guess that helps a lot. I will look into it as soon as possible.

rwbr commented 1 year ago

I'm still having problems reproducing the error behavior in your observations. Following your guide I get the following behavior:

Open as Expanded = false it will show one week

Simulator Screen Shot - iPhone 14 Pro Max - 2022-12-26 at 15 06 49

Press arrow to previous week

Simulator Screen Shot - iPhone 14 Pro Max - 2022-12-26 at 15 07 10

Click selected on Sunday

Simulator Screen Shot - iPhone 14 Pro Max - 2022-12-26 at 15 07 35

This delivers the correct events of that day (in this case a multi-day event). With the logs I can confirm, that the correct date was selected.

Bildschirm­foto 2022-12-26 um 15 07 56

There must be an additional condition in your case.

rwbr commented 1 year ago

I don't know, but maybe this is a similar problem like #36. There it had to do with a conversion of the date to local format. This caused an error, that I could not simulate with my time zone settings.