jdtcn / BlazorDateRangePicker

A Blazor component for choosing date ranges and dates
MIT License
182 stars 35 forks source link

Display wrong month when click button previous month #93

Open duynguyen224 opened 9 months ago

duynguyen224 commented 9 months ago

Hi Sergey Zaikin You did a really good job of making this component. It's helped me a lot. But I'm facing the issue: This happened just only when we were on the first day of the month. See the video for more detail: Youtube Steps to Reproduce:

  1. Go to page: https://blazordaterangepicker.azurewebsites.net/container
  2. Select the first day of the month (for example, I select 12/1/2023 (mm/dd/yyyy))
  3. Click the button previous month two times, now the calendar will display October
  4. From the month dropdown, choose back again to December, and select the 1st day (12/1/2023)
  5. Click the button previous month, now the issue happened, and the month display is October

Expected Behavior: display the calendar in November Actual Behavior: display the calendar in October

jdtcn commented 9 months ago

Hi, thanks for the detailed description, will try to figure it out.

I tried reproducing the problem in chrome, edge and firefox but it worked fine for me. I believe the problem may be related to your time zone and time you encountered it. Please provide the time zone on your machine, the date you reproduced this and what browser you used.

Thank you!

duynguyen224 commented 9 months ago

Hi, thanks for your support. My machine settings:

Please watch the YouTube video I produced on this issue for more detail (5 steps)

duynguyen224 commented 9 months ago

As you said: "I believe the problem may be related to your time zone and time you encountered it" You are right! I change my local machine to

And It works fine!

P/s: I tried to change again the timezone and region back to UTC+07:00 and region VietNam, it happened again.