Web Development
Bug Report
Next.js hydration mismatch caused by toLocaleDateString on server and browser
Order dates rendered fine locally but threw hydration errors for users in Asia and Europe. The server formatted dates in UTC and en-US, the browser in local time. Here is how we found it and fixed it for good.