Hydration failed because the initial UI does not match what was rendered on the server
3 Replies
could someone explain whats happening and how to fix this please?
ok I fixed it by adding to the div but I still dont know why that fixed it
The date on the server is rendered differently than the client, likely b/c they have different timezones
You might notice a flicker on the page with the date when you reload
Like the date flashes from one thing or another
You have to format dates consistently according to the user's timezone
how do I achieve that