What is clock skew?

Clock skew is a mismatch between the timestamps recorded by different badge readers or access-control systems caused by unsynchronised device clocks, time zone settings or DST changes. It can shift events into the wrong calendar date or minute and distort attendance patterns.

In access-control systems, every badge swipe or access event is timestamped by the reader that recorded it. Clock skew happens when those reader clocks are not accurately synchronised — for example because NTP (network time protocol) is misconfigured, devices are set to the wrong time zone, or a reader’s internal clock has drifted. Small skews (seconds or minutes) usually only affect fine-grained timing; larger skews or mismatched time zones can move events across calendar dates or weekdays. For workplace attendance analytics this distorts daily counts, weekday patterns and peak timing unless corrected or accounted for during import and processing.

Usage example

We combined CSV exports from three buildings and noticed a spike of entries after midnight at Site B — a quick check showed the Site B readers were two hours ahead due to a wrong time zone setting, a classic clock skew issue that moved many late-evening swipes into the next day.

Practical application

Clock skew matters because it changes how badge events map to calendar days and weekday patterns — the metrics facilities and workplace teams rely on (daily attendance, busy-day identification, weekday demand profiles) can be biased if events are shifted. Practical consequences include: mis-identified peak days, inflated or missing counts for particular weekdays, incorrect selection of representative weeks for occupancy studies, and failed deduplication when matching across systems. Mitigations include ensuring readers are synchronised to a reliable time source, including time zone metadata with imports, applying local corrections during data mapping, and using calendar-date aggregation (which reduces sensitivity to small skews). BadgeIQ’s local processing and calendar-date reduction help limit the impact on protected daily aggregates, but large or cross-site skews still need to be fixed at source or corrected during import.

FAQ

How large does clock skew need to be before it affects attendance metrics?

Even small skews (minutes) can matter for analyses that use exact arrival times, but for daily attendance counts the biggest problems occur when skew moves events across midnight or a weekday boundary. In practice, skews of tens of minutes to hours tend to produce clearly visible distortions in daily and weekday patterns and should be corrected.

How can I detect clock skew in access-control exports?

Look for unexpected spikes or gaps near midnight, sudden shifts at daylight saving transitions, or consistent offsets when comparing the same person’s events across multiple sites. Comparing reader timestamps against a trusted time source or sampling simultaneous events (e.g., scheduled access tests) also reveals skew.

What can I do to prevent or fix clock skew?

Ensure readers use NTP or another reliable time service, verify time zone and DST settings on devices and export tools, document the timezone for each source, and run simple QA checks on exports before analysis. If skew is detected, apply a timestamp correction during import (for example by shifting all events from a reader by a fixed offset) or rely on calendar-date aggregation to avoid minute-level errors.

Will BadgeIQ correct for clock skew automatically?

BadgeIQ reduces exact timestamps to local calendar dates during local processing, which mitigates many small-skew issues for daily aggregates. BadgeIQ also includes AI-supported mapping and data-quality checks at import and flags sources with poor quality. However, large skews, wrong time zones or inconsistent reader configuration should be corrected at source or adjusted during import to ensure accurate cross-site comparisons and weekday pattern analysis.