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
The reason we are seeing this is due to the format of the date being different from the server and the client side. One way to fix it seems to be using a library like date-fns to format the date according in the EventsDashboardDetails.tsx file.
{format(new Date(event?.createdAt), "P")}
But the above method will format the date according to only a single format globally. If we want to change the region, then we might have to dynamically collect the locale and then convert it to that format I think so..
Describe the bug
When you refresh the site you can see that we have a hydration error. This is probably the
EventDetailsTable
component.Picture under is the error.
![Screenshot 2024-05-21](https://private-user-images.githubusercontent.com/24507211/332279739-dfbfedc8-0e65-467d-b710-6ff51b8c2bc0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MTczMzgsIm5iZiI6MTcxOTcxNzAzOCwicGF0aCI6Ii8yNDUwNzIxMS8zMzIyNzk3MzktZGZiZmVkYzgtMGU2NS00NjdkLWI3MTAtNmZmNTFiOGMyYmMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDAzMTAzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ1MTY5MzhmZjIzMWQzYjhlY2JhM2ViMGJmMzI0MzllMDZkM2NkMDU3Y2UyZGMxZTBmMmQzMjMyOTIzMDA5MzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.8CikhO0v5psvIi4yb1vlL9ZCqbClCb1tXrz4U64okas)
Steps to reproduce
Expected Behavior
The page should refresh without any errors.
The text was updated successfully, but these errors were encountered: