BlogGuides · November 10, 2026 · 4 min read

Contact Form 7 Appointment Times: Handle Repeated and Skipped Local Hours

Turn a requested local appointment into a confirmed instant. Detect repeated or skipped clock times and preserve the chosen zone and offset.

A visitor can request 01:30 on a day when a clock is set back. In some time zones that local time occurs twice, and the form value alone cannot tell your calendar which one the visitor meant. On a spring transition, a time can fail to occur at all. Handle these cases before turning a Contact Form 7 inquiry into a confirmed appointment or writing a timestamp to your CRM.

Two clocks show the same local time against a moonlit scene and a sunrise.
Generated conceptual illustration; not a product screenshot or measured result.

Identify what the form promises

A requested day, a preferred wall-clock time and a confirmed appointment are different values. A request such as “Tuesday morning” may be enough for a callback queue. Keep it as a preference until someone confirms a time. If you offer a definite bookable slot, send a server-issued slot identifier and resolve that identifier to the stored time on the server. Treat a hidden field as input, because it can be changed in the browser.

If your CF7 workflow collects a date and a time as separate fields, combine them only once you know the intended timezone. The same applies if a customization uses an HTML datetime-local control: its value is a local date and time without a timezone offset. Use a service location’s configured IANA zone for appointments at that location, or explicitly collect the intended zone for remote appointments. A browser’s current offset alone cannot predict the offset on a future appointment date.

Resolve the wall time against the zone rules

Use a timezone-aware library and maintained timezone data on the worker that confirms the appointment. Parse the submitted fields strictly. Resolve the combined local value against the configured IANA identifier, such as America/New_York. Determine whether it has zero, one or two candidate instants. For example, under the applicable New York rules on November 1, 2026, 01:30 can represent either 05:30 UTC at UTC−04:00 or 06:30 UTC at UTC−05:00. Those two calendar entries are an hour apart.

In Python, zoneinfo represents the two sides of an ambiguous clock time with the fold attribute. Simply attaching a zone does not validate a wall time. A practical check constructs both fold candidates, converts each to UTC and then back to the intended zone, keeps only candidates that return to the submitted wall time, and deduplicates the UTC results. Deduplicate by UTC instant rather than comparing two local datetimes with the same zone object; local comparisons can ignore the fold. Use the timezone database shipped with the environment or the documented tzdata dependency where system data is unavailable.

  • One candidate: Check availability and service hours for that instant before confirming.
  • Two candidates: Ask the visitor or operator to choose between the two occurrences, using the displayed local time, location and numeric offsets. If your policy preselects an occurrence, show the choice clearly before confirmation.
  • Zero candidates: Explain that the requested local time is skipped in the chosen zone and present valid alternatives. Do not silently round it forward.

Preserve enough context for a later replay

Keep the submitted local value, IANA zone, chosen offset and confirmed UTC instant alongside the appointment state. If a CRM field stores only a UTC timestamp, write the confirmed instant in its documented format and keep the other fields in the scheduling record or approved companion fields. Do not copy the submitted value directly into a UTC field. For follow-ups or replays, use the confirmed instant and slot ID; recalculating from a bare 01:30 can move a meeting without anyone intending it.

Future timezone rules can change. Decide whether an appointment is defined by a committed UTC instant or by a local venue time whose UTC representation may be revised after a rules update. For already communicated appointments, review proposed changes before changing the invitation. Recurring schedules need an explicit recurrence policy because a rule like “09:00 every Monday” normally follows local clocks rather than adding a fixed number of UTC hours.

Verify display, handoff and reporting separately

On staging, send one ordinary synthetic request, one repeated-hour request and one skipped-hour request. For New York, 02:30 on March 8, 2026 is a useful skipped-hour fixture. Exercise both choices in the repeated-hour case and check that the resulting UTC instants differ by one hour. Compare the confirmation display, calendar entry and stored CRM value. Change the browser timezone and repeat with the same service location; the intended interpretation should remain stable. Also check that a date-only preference remains a date and never gains a timestamp because a mapper sees a midnight default.

Record the form outcome, appointment state and calendar write as separate milestones. A valid form can still produce a request that needs human clarification. The calendar-date guide covers date-only fields; the report timezone guide covers how to group measured events by day. Those decisions should not change the chosen appointment instant.

For a WordPress-side submission view, start with Svetlik Analytics for Contact Form 7, the free plugin published by this site. The scheduling adapter and calendar remain responsible for timezone resolution, availability and confirmation.

Official references