-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hydration error on dates in collection list views #10044
Comments
Please add a reproduction in order for us to be able to investigate. Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided. Why was this issue marked with the
|
@JarrodMFlesch this is a known issue for sure. It's caused because a date that comes through from the server may be formatted via the server's timezone, but a date that gets mounted in the admin UI will be mounted with the admin timezone. We definitely need to do something to fix this. |
Describe the Bug
Having any column with a field of type date visible in the list view causes a hydration error when server and client are in different timezones.
This is essentially an extension of #6796, which, as far as I can tell, was resolved for the DocumentControls, but not for the list view.
The recently implemented
suppressHydrationWarning
prop would help, but to apply it to the respective cells, custom components would need to be created.Link to the code that reproduces this issue
https://github.com/ja-soph/payload-hydration-error-example
Reproduction Steps
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
The text was updated successfully, but these errors were encountered: