Scheduler uses recipient's time zone via Intl to decide when outreach emails can send
A developer's outreach tool runs on a PC set to Pakistan time but sends email during Toronto business hours, so it must determine the correct local time from the recipient's zone rather than the host machine. The send window and zone are stored in configuration, and a single helper uses the browser's Intl API to convert any instant into the local weekday and minutes since midnight. Comparing against minutes rather than UTC hours means daylight saving changes need no special handling. The approach was adopted after a wrong Toronto time was reported when a host-side clock label was trusted. Known limitations include that the check only governs when sending is allowed, not when recipients read email, and that the design assumes one time zone per campaign.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in