ETLMCPData Conveyance Works
Log in Start free
Guides

Snapchat days, time zones and daylight saving

Why a Snapchat daily report must start at the ad account's local midnight, how daylight saving breaks fixed UTC offsets, and how etlmcp asks for each day.

Coming This connector is coming.

Snapchat keeps every time in UTC, but a day in its reports is a day in the ad account's own time zone. To get one full day of figures, a request has to start at midnight in that zone and end at the next midnight, written as the matching UTC instants. Because the gap between local time and UTC moves when daylight saving starts or ends, a fixed offset that worked all summer gives wrong boundaries in winter, and Snap's own FAQ names daylight saving as the most likely reason a daily report job that used to work starts failing. When the Snapchat connector is available, etlmcp works out each local midnight from the account's time zone for the exact day it asks for, so the change of clocks needs nothing from you.

What Snapchat requires of a daily request

Snap's measurement page sets these rules for figures by day (granularity=DAY):

  • start_time and end_time are both required and must fall on a whole hour: 22:00 is accepted, 22:45 is not.
  • They must also sit on a day boundary; Snap ties that boundary to the ad account's time zone in its rules for asynchronous daily reports, and its FAQ asks for the same alignment on every daily request.
  • A synchronous request covers at most 31 days. Hourly figures (granularity=HOUR) are capped at 7 days.
  • Figures are final 48 hours after the end of the day, again counted in the account's time zone.

The time zone is the account's timezone attribute, a named zone such as America/Los_Angeles, Europe/London or UTC. It is set when the account is created, and Snap's ad account page does not list it among the attributes the update endpoint changes. A report day is the account's day, whatever zone you work in.

How daylight saving breaks a fixed offset

Take an account set to America/Los_Angeles. In October, local midnight is 07:00 UTC; after clocks go back in early November, it is 08:00 UTC. A job that always adds seven hours to a UTC midnight asks for 23:00 local time in November. That is not a day boundary for the account

Snap's FAQ walks through the same problem for a Berlin account. When both ends of the range fall in the same period, both get the same offset. When the range starts before the change and ends after it, the start and the end need different offsets. Read that example for its method, not its numbers: Berlin is one hour ahead of UTC in winter and two hours ahead in summer.

The change also makes one local day 23 or 25 hours long. A range of 31 local days that contains the autumn change lasts 31 days and one hour, which can run past the 31-day cap of a synchronous request.

What etlmcp does

When the Snapchat connector is available, etlmcp handles each of these points:

  • The zone comes from Snapchat. etlmcp reads the account's timezone each time it fetches, and falls back to the zone stored when you added the account. An account for which Snapchat gives no usable zone is listed in the account picker with the reason Snapchat did not report a usable time zone for this account and cannot be chosen.
  • Each midnight is computed, not offset. For the first day of a window, etlmcp builds midnight in the account's zone and writes it with that day's own offset, such as -07:00 before the change and -08:00 after it. The end is the midnight after the last day, worked out the same way. In the rare zone where clocks skip midnight itself, it uses the first moment that exists on that day.
  • Windows stay under the cap. A long range is split into windows of 30 days, so a window that crosses the end of daylight saving stays below 31 days.
  • Returned days are read as instants. Snapchat may label a day's bucket with the account's offset or in UTC. etlmcp converts the timestamp to the account's zone before taking its date, rather than cutting the date off the text, so a bucket labelled 07:00 UTC lands on the right local day. A bucket that falls outside the requested days fails the run instead of being stored.

What this means for your table

Each date in your Snapchat rows is a calendar day in the ad account's time zone. If you join Snapchat with a platform whose account uses another zone, the same date covers different hours on each side; compare them by day, not by hour.

The schedule of a pipeline is a separate setting: a pipeline runs at its own hour in its own time zone, UTC by default (see the pipeline schedule). It decides when a sync starts, not which hours a Snapchat day covers. Since figures settle 48 hours after a day ends, the routine re-pull of the last 7 days picks up late changes; see the trailing window. For what each sync fetches, see the Snapchat connector.

Related

Sources

  1. FAQ | Snap for Developers — developers.snap.com, checked
  2. Measurement | Snap for Developers — developers.snap.com, checked
  3. Ad Accounts | Snap for Developers — developers.snap.com, checked