nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.39k stars 1.39k forks source link

[BUG] - Date picker with month and year #3649

Open myatminag opened 1 month ago

myatminag commented 1 month ago

NextUI Version

2.4.6

Describe the bug

It is working on macOS Chrome. But on window OS Chrome, when using the Next UI date picker, selecting a specific month or year results in an incorrect display. For example, when I select August, the date picker shows July. Similarly, when I choose the year 2024, the date picker displays 2023.

Steps to Reproduce the Bug or Issue

  1. Go to Next UI date picker
  2. Scroll down to with month and year picker
  3. Attempt to select the month of august
  4. Notice that the date picker displays July instead.
  5. Now, attempt to select the year 2024.
  6. Notice that the date picker displays 2023 instead.

Expected behavior

When a user select August, the date picker should display August. Similarly, when a user selects the year 2024, the date picker should display 2024

Screenshots or Videos

Screenshot 2024-08-13 094223

Operating System Version

Window 11 pro 64-bit, x64 based processor

Browser

Chrome

linear[bot] commented 1 month ago

ENG-1274 [BUG] - DATE_PICKER_WITH_MONTH_AND_YEAR

HrushiYadav commented 1 month ago

@myatminag : Can you please assign this issue to me

neehhaa06 commented 3 weeks ago

Hello @wingkwong and @myatminag

First, to fix the NextUI date picker issue on Windows OS Chrome, ensure you're using the latest version of NextUI and Chrome. Verify that your timezone and locale settings are correct. Inspect the date picker with Developer Tools for JavaScript errors. If the problem persists, test in incognito mode, or other browsers, or apply a temporary workaround and report the bug to NextUI.

myatminag commented 2 weeks ago

@HrushiYadav

I am sure using the latest version of NextUI and Chrome. I also have correct timezone and locale settings. Here is my testing in incognito mode.

nextui-issue

vk-cb commented 1 week ago

I am getting the correct time zone and I am using window OS.

HrushiYadav commented 1 week ago

I am getting the correct time zone and I am using window OS.

I tried to reproduce same issue but failed to do it I'm using windows 11