Resources · 82

Reliable reports: time zones, cutoffs and late events

Avoid shifted reporting days, duplicate counts and inconsistent comparisons between exports and dashboards.

· 3 min

Charts and statistics on a laptop screen Illustration · fictional scene

What this guide helps achieve

  • Describe instants and business days
  • Define period boundaries
  • Handle late arrivals
  • Reconcile equivalent scopes
  • Test reconstruction

Quick check

  • Is converting everything to UTC enough?
  • Why does a total change after export?
  • Is a late event a duplicate?

Step-by-step method

  1. 01

    Describe instants and business days

    Separate event, ingestion and modification timestamps from business dates. A UTC instant alone does not define a store’s trading day. Retain a named business time zone when needed. PostgreSQL converts timestamps with time zone to UTC without retaining the original zone; store that zone separately if required.

    Deliverable: date and time-zone dictionary.

  2. 02

    Define period boundaries

    Use an inclusive start and exclusive end. Calculate boundaries in the business time zone before conversion. Test daylight-saving changes, month ends and dates without times. A local day does not always have the same duration; do not assume every day lasts twenty-four hours.

    Deliverable: period-assignment examples.

  3. 03

    Handle late arrivals

    Decide which report may change, for how long and with what label. Retain ingestion time and identifiers to distinguish delay from duplication. Do not silently overwrite a distributed report: provide a dated snapshot, revision or correction suited to its use.

    Deliverable: revision policy and discrepancy log.

  4. 04

    Reconcile equivalent scopes

    Compare sources using identical periods, business states and cutoffs. Separate created, paid, cancelled and refunded orders. Examine individual records near day boundaries before concluding that collection lost data.

    Deliverable: record-level discrepancy reconciliation.

  5. 05

    Test reconstruction

    Replay an interval containing a clock change and late events. A reconstruction at the same cutoff should explain any differences. Display time zone, freshness and provisional or closed status beside results.

    Deliverable: reconstruction test and report legend.

Reusable worksheet

Complete with your authorised observations. These fields are a working template, not observed results.

FieldInformation to record
CalendarNamed zone, week start and period boundaries
TimestampsEvent, ingestion and modification times; precision and origin
CutoffSnapshot time, revision window and late-arrival handling
ReconciliationIncluded states, identifiers and explained differences

Worked example

Illustrative situation

Fictional example: two teams compare Monday sales using UTC and Europe/Paris respectively.

Decision and expected evidence

Reconciliation isolates orders at day boundaries, then adopts a common business period and identical cutoff.

Distinguish the mechanisms

MechanismPurposeCheck or limitation
Business dateAssign activity to a calendarIs not an instant without a convention
Event timeMeasure when activity occurredCan arrive late or use an inaccurate clock
Ingestion timeMonitor pipeline freshnessIs not necessarily the activity date

Management indicators

IndicatorWhat it measuresFirst action
Ingestion delayTime between activity and pipeline availabilityDefine an appropriate provisional window
Period revisionsChanges between comparable dated snapshotsSeparate delays from corrections
Boundary discrepanciesRecords assigned to different daysCorrect the time convention

Common pitfalls

  • Is not an instant without a convention
  • Can arrive late or use an inaccurate clock
  • Is not necessarily the activity date

Frequently asked questions

Is converting everything to UTC enough?

No. UTC helps compare instants; days, weeks and cutoffs still require a business time zone and calendar.

Why does a total change after export?

New events, corrections or business-state changes may be included. Check cutoff and revision policy before comparing.

Is a late event a duplicate?

No. Check its identifier and content; ingestion delay does not establish repetition.

Official references

References consulted: . The method and worksheet propose checks to adapt to your context; they do not constitute certification.