You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why does the DatePicker show the build time date instead of the current date after deployment, while the date inside the div is correct?
For example, the code was deployed on 2025-02-26, and today is 2025-02-28. However, the DatePicker displays 2025-02-26 (in bold), while the date inside the div correctly shows 2025-02-28.
I tried setting the initial date—same result. I also tried using useEffect—same result.
Next.js 13.5.7
"react-datepicker": "^6.6.0"
Why does the DatePicker show the build time date instead of the current date after deployment, while the date inside the div is correct?
For example, the code was deployed on 2025-02-26, and today is 2025-02-28. However, the DatePicker displays 2025-02-26 (in bold), while the date inside the div correctly shows 2025-02-28.
I tried setting the initial date—same result. I also tried using useEffect—same result.
Live result:
https://www.pediatreegle.lt/test3
Here is the code:
The text was updated successfully, but these errors were encountered: