Guide
How to test scheduling bugs, time zones and daylight saving time
A scheduling bug is what happens when the clock, the time zone, or two people asking for the same slot don't match what the code assumed.
By Thomas Wagenberg, founder of Wagenberg Technology Group. I think most teams test one happy-path booking in their own zone and call it done. That's why bookings that move an hour, and two people getting the same slot, show up after launch.
If your product books time, shows availability, or sends a calendar invite, this is the pass I would run in staging before you ship. The same pass covers a sync with Google Calendar, Outlook, or another calendar. You can do it on your own. The longer test plans are in the articles. This page is the short version. All of it should run in staging, not against live bookings.
The short answer
Store the instant you mean, in UTC, and store the time zone the user was in when they booked. Then test the days the clocks change. Use at least two zones. Have two people grab one slot. And see what happens when a calendar API call times out or comes back with an error.
If you only test 2 p.m. next Tuesday in the zone where you live, I don't think you've tested the product.
Why these bugs get through
The usual pass looks fine. A booking is created, the confirmation email has the right local time, and the calendar invite opens. That can all be true in one zone, on a normal weekday, and still be wrong when:
- The appointment is in a zone you don't live in.
- The clocks change between booking and the appointment.
- Two customers submit the same slot at the same time.
- The calendar service retries a request, or takes too long, and the app isn't sure whether the event exists.
Those aren't exotic cases. They're the cases a scheduling app is for.
A daylight saving change can move a booking
Here's a current example. Google's help article, Fix Calendar events for Canadian daylight saving time, says several Canadian provinces and territories decided to stay on daylight saving time permanently. Google says some events created in Alberta, British Columbia, Manitoba, and the Northwest Territories may appear one hour late on and after November 1, 2026. Google also says room conflicts are likely when those events shift. That's a booking problem after a time zone rule change, documented by Google. I didn't discover it, and I didn't test Google Calendar for this page. The useful part for a startup is that a zone rule change can move bookings and collide with ones that are already there.
The same class of failure shows up around the ordinary spring and fall changes, even when the rules don't change. In the United States, daylight saving time currently starts on the second Sunday in March and ends on the first Sunday in November. NIST lists the dates on its daylight saving time page. The spring change skips an hour. The fall change repeats one. If your app treats "2:30 a.m. on that Sunday" as a normal local time, I would want to see what it stores and what the user sees.
Date math that only happens on some calendars is in the same family. Microsoft's post-mortem of the Windows Azure disruption on February 29, 2012 is a public account of a software bug tied to leap day. I wasn't involved in that incident. I mention it because a date that doesn't exist most years is exactly the kind of thing a normal test pass misses.
For the step-by-step cases, use How to test time zones and daylight saving time in a scheduling app. You can run them without waiting for the real clock change.
Calendar sync does not prevent double booking
A calendar availability check is not the same thing as a rule that only one booking can own a slot.
If two requests land at the same time, both can see the slot as free, and both can write a booking. If a request times out after the booking may already have been saved, a retry can create a second one. If the calendar API refuses the request, the app can end up sure it booked the slot when the calendar never got the event, or the other way around.
I would test those three cases in staging, with two users, and write down the expected result before you run them. I published the matrix in How to test double booking before launching a scheduling app. PostgreSQL's docs on exclusion constraints for ranges are a starting point for the database rule. For retries, Amazon has a public note on making retries safe with idempotent APIs. Google's Calendar API error guide is the one I'd keep open while testing sync failures.
If the only thing protecting a slot is "we checked the calendar first," I wouldn't call that safe.
What I would run in staging
Do this on a build that's close to what you'll ship. Use test accounts, not real customers.
- Book the same kind of appointment in at least two time zones. Open the confirmation, the in-app display, and the calendar invite in both.
- Book an appointment that starts on a spring clock-change date, one that starts on a fall clock-change date, and one that starts on February 29 in a leap year if the product lets you book that far. Confirm what is stored, not only what the screen showed at save time.
- Change the user's zone after the booking exists. The instant should stay the same. The local display should change.
- Have two accounts request the last remaining slot at the same time. Exactly one booking should exist when both requests have finished.
- Let a request time out after the server may have saved the booking, then retry it. You should still have one booking, not two, and the client should be able to tell what happened.
- Force a calendar API error or a timeout, then retry. The app and the calendar should agree on whether the event exists.
- Recurring bookings: edit one instance, delete one instance, and check a clock-change date in the series.
Write the expected result before you run each row. If you can't say what should happen, you can't tell whether the test passed.
How I'd decide whether to ship
I would ship only if the staging record shows the cases above, with expected vs actual, and the failures are either fixed and retested or accepted in writing. A green run in one zone, on a weekday, isn't enough.
If you'd rather have this run as an audit, with findings in your tracker and fixes as reviewed pull requests, that's the calendar and scheduling audit. The wider list is the pre-launch software audit checklist. I can be reached from the contact page.
Frequently asked questions
What is scheduling bug testing, in practice?
It's a staging pass that aims at the cases a normal click-through misses: time zones, daylight saving changes, leap days, two people taking one slot, and calendar sync errors or retries. I think that's the work that actually protects a booking product.
If all of our users are in one country, do we still need more than one time zone?
Yes, if anyone travels, signs in from another zone, or uses a calendar that isn't in your zone. Even inside one country you can have more than one zone, and you still have the clock-change dates. I'd still run two zones and the change dates.
Are daylight saving booking bugs only a U.S. problem?
No. Rules differ by country, and they sometimes change. The Google Calendar article about some Canadian zones in 2026 is one current public example. I'd test with the current time zone database, not with whatever your laptop happened to have when you first wrote the code.
Can checking the calendar first stop double booking?
I don't think so, not by itself. Two requests can both see a free slot. You need a server-side rule that only one booking can own the time, plus safe retries, and you need to test the case where the calendar call fails.
Should I run these tests on live calendars?
No. Use staging, test accounts, and a test calendar. A live double-booking test can create real conflicts for real people.