Skip to content
Back to articles

Write Time-Zone and Daylight-Saving Acceptance Tests

Separate instants, appointments, recurring schedules, and date-only values, then test ambiguous times and daylight-saving boundaries.

Leer en español
Write Time-Zone and Daylight-Saving Acceptance Tests

“Send the reminder at nine” is an incomplete software requirement. Nine in the customer's location, the office's location, or the device's current location? Should it stay at nine after a daylight-saving change? A small acceptance plan can expose these decisions before a customer receives an unexpected appointment time.

Start by separating the kinds of time your business stores. Then test the same record across locations and across an offset change, with an expected outcome written before the software runs.

Name the meaning of each field

Use four categories in a hypothetical scheduling system:

  • A recorded instant: the moment a request was submitted. People may view it in different zones, but it represents one event.
  • A local appointment: a visit at a stated local date and time in a particular service location.
  • A recurring rule: a reminder every weekday at a specified local time.
  • A date-only value: an anniversary or business date without a time of day.

Ask the business owner what each field means rather than selecting one storage rule for all four. In particular, a date-only value should not move to the previous calendar date because someone views it west of the server.

Record the zone, not an unexplained offset

A regional zone such as America/New_York carries a different meaning from a fixed UTC offset. The IANA time-zone database is updated when boundaries, offsets, and daylight-saving rules change. Test against the data actually used by the supported systems.

For a visit, identify whether the service location or the customer's chosen zone owns the appointment. Show enough context in the confirmation to avoid confusion. Changing a phone's location should not silently redefine a visit at a physical address.

Keep an audit trail of a deliberate reschedule separately from a display conversion. Showing the same instant in another zone should not look like an employee changed the booking.

Define the difficult cases explicitly

Choose a supported region with an offset transition in the deployed time-zone data. Use that transition to prepare the following cases rather than assuming every region changes clocks the same way:

  1. A missing local time: choose a time inside a forward-clock gap. Decide whether booking is rejected or moved, and require the interface to explain the result.
  2. A repeated local time: choose a time that occurs twice when clocks move back. Require an explicit policy for choosing the intended occurrence.
  3. A recurring reminder: verify that the rule follows its intended local schedule across the transition.
  4. A fixed duration: test a timer defined as exactly twenty-four elapsed hours separately from a task defined as “tomorrow at the same local time.”
  5. A date-only record: view it from different zones and confirm that its calendar date remains the intended one.

MDN documents that local-time hour changes across daylight-saving boundaries can produce a different elapsed duration from the nominal hour difference. This is why duration and local-calendar requirements need separate expectations.

Trace one appointment through the whole workflow

Create one synthetic visit with a known service zone. Check the entry form, saved record, office dashboard, customer confirmation, reminder, calendar export, and cancellation view. A correct database value does not guarantee that every screen formats it correctly.

Open the same booking on a device in another zone. Confirm whether the product shows service-local time, viewer-local time, or both, according to the agreed design. Include the zone in any screenshot used as evidence.

Test report boundaries too. A late-evening request may appear on different calendar days depending on the report zone. Specify which day owns it, and compare the record identifiers included in the daily report rather than only the total.

Keep a compact acceptance record

For each case, record the business meaning, input zone, local value, selected occurrence if ambiguous, expected instant when applicable, expected display, and observed result. Include application version and the relevant runtime or time-zone data version when available.

Repeat the boundary cases when scheduling logic or supported runtime data changes. Ask an operations colleague to read the customer confirmation and explain when the visit will happen. Correctness includes that understanding, not just a successful automated assertion.

These examples define a hypothetical test plan and do not establish a universal scheduling policy. Contact Dynelink to turn appointment, reminder, and reporting rules into time-zone acceptance cases your team can verify.

AI-generated conceptual illustration; not a client screenshot.

Contact

Let’s talk about your project

Tell us what you want to build or improve, who will use it and what you need to solve.