Urgent.News

What's breaking now, across thousands of outlets.

Tech

Time Zones in Booking Automations for Businesses That Serve Several US States

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…

A remote tutoring business in Denver sends reminders to students in California and New York. When a reminder is set for 9 a.m. Mountain time, half the families receive it at the wrong moment, and twice a year, during daylight saving changes, appointments shift by an hour. At NxFlowAI, an AI automation agency based in Mumbai, we follow these rules for building reminder automations for US small businesses.

First, we store appointments as instant UTC times plus the IANA zone name where they were booked. Next, we collect the customer's zone at booking, either from their address or by asking. Then, we schedule reminders relative to the customer's local time, never hard-coding offsets. We use the tz database to handle daylight saving changes, as some places like most of Arizona do not observe it.

To ensure accuracy, we write tests for bookings near daylight saving changes and for times that temporarily disappear or occur twice. Each message displays the time and zone abbreviation the customer recognizes, such as 3:30 p.m. Pacific. Lastly, we respect quiet hours in the customer's local time. Following these rules eliminates most complaints about reminders coming at odd times.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I published 109 Chinese surnames as open data — here are the awkward parts

Every few months someone asks me for a "list of Chinese surnames". The answer is always more annoying than it should be. The lists that exist fall into three camps.

  • Individual releases dataset of 109 Chinese surnames
  • Data includes 13 fields per record in JSON and CSV formats
  • Information covers ancestry, notable figures, and rank

What Happens When You Hit Search? Every Stop in 190 Milliseconds

DNS, routers, TCP, TLS, the edge and the search itself, and why the same app can be four times slower Hit search in an e-commerce app.

  • DNS resolution takes ~30 milliseconds, resolving domain to IP
  • Data travels 1,000 km via ~10 network hops, ~25ms TCP handshake
  • Server location in Mumbai vs Virginia causes 770ms delay

More from Friday 13 November →