Time Zones and Datetime
Talk it through out loud with your AI coach.
The problem
- hard
- Pro
A reminders app stores times from datetime now, in the server's local time with no time zone. After moving to servers in another region, reminders fire hours off, and users in other countries see wrong times. Daily nine o'clock reminders also drift by an hour when the clocks change. Explain what went wrong and how you'd fix it.
What a strong answer covers
- The difference between naive and time-zone-aware datetimes.
- A safe way to store moments in time on the server.
- Showing times correctly to people in different places.
- Why repeating local-time events need different handling, and the awkward hours around clock changes.
Common mistake: Fixing everything by storing UTC, without noticing that a daily local-time reminder then shifts by an hour twice a year.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud