4am for a 10am booking
A customer in Chicago books a 10am appointment. Your confirmation email says 4am. The calendar page says 10am.
This answers: Why does my app show the wrong time? No coding needed. 2 quick decisions.
- Where your data lives
- Debugging without panic
Checking your access…
Why does my app show the wrong time?
The time was probably stored without a , so the server and the browser each guess one. Store moments as timestamptz in Postgres (an exact moment, kept as UTC), store each user's time zone separately, and convert to local time only when displaying, using the same rule on server and browser.
Breaks at Database: Time saved without a zone
Why AI tools write this bug
Generated schemas often use a plain timestamp column, and generated code formats dates wherever it needs them, with whatever zone that machine uses.
How to fix it
- Use (or equivalent) for moments in time.
3 more steps, and a prompt that checks your own app for this bug. Part of Pro.
UnlockCommon questions
- Why does the server show a different time from the browser?
- Servers usually run in UTC; browsers use the visitor's local zone.