A remote tutoring company in Denver books students in California and New York. A reminder set for "9 a.m." goes out at 9 a.m. Mountain time to everyone. Half the families get it at the wrong moment, and twice a year, around the daylight saving change, appointments shift by an hour.
I work at NxFlowAI, an AI automation agency that builds reminder automations for US small businesses, serving US businesses remotely from Mumbai. These are the rules we follow.
Rule 1: store instants, keep the zone
Store every appointment as a UTC instant plus the IANA zone name it was booked in.
from datetime import datetime
from zoneinfo import ZoneInfo
def to_record(local_str, zone):
local = datetime.fromisoformat(local_str).replace(tzinfo=ZoneInfo(zone))
return {"utc": local.astimezone(ZoneInfo("UTC")).isoformat(), "zone": zone}
rec = to_record("2026-11-02T15:30", "America/Los_Angeles")
Rule 2: the customer's zone, not the business's
Collect the customer's zone at booking (from their address, or ask). Reminders are scheduled relative to their local time.
Rule 3: never hard-code offsets
"Eastern is UTC minus five" is wrong for half the year. Use the tz database. Some places, such as most of Arizona, do not follow daylight saving at all; the database knows this, people forget.
Rule 4: test the edges
Write tests for bookings on the days the clocks change, and for times that do not exist or happen twice on those days.
def reminder_time(rec, hours_before=24):
from datetime import timedelta
start = datetime.fromisoformat(rec["utc"])
return start - timedelta(hours=hours_before)
Rule 5: display with a label
Every message shows the time and the zone abbreviation the customer recognises, for example "3:30 p.m. Pacific".
Rule 6: quiet hours in the customer's zone
If you have a rule like "no texts before 8 a.m.", apply it to the customer's local time.
Get these right and most "the reminder came at a weird time" complaints disappear. For how we decide which automation to build first, see how to pick which reminder to automate first.
Top comments (0)