Skip to content

Timestamps in field data: four ways they quietly break your KPIs

Availability, lost energy and alarm order are computed on time, so a wrong timestamp makes them wrong without any visible error. A practice guide to the four usual causes: which clock stamped the reading, local time and daylight saving, clock drift, and late data.

8 min read

By The Fleetera team

If you run SCADA, data or performance work for a fleet, the KPIs you report are computed on time: availability, lost energy and the order of alarms. When a timestamp is wrong, those figures are wrong too, and nothing in the pipeline raises an error. Most data quality work checks the value: whether it is in range, stuck or in the right unit. The time gets less attention, and it matters as much.

  • Availability is time in a state divided by time in the period.
  • Lost energy is a shortfall summed over intervals when an asset could have produced and did not.
  • An alarm sequence is an ordering of events by time.

This is a general practice guide, not a report on any one event. It covers the four usual causes, one section each: which clock stamped the reading, local time and daylight saving, clock drift, and late data. It ends with a checklist to run against your own pipeline.

Which time is it?

One reading can carry three different times.

Source time
When the device or controller says the value was measured or last changed. It comes from the clock closest to the process.
Receive time
When a gateway, an OPC UA server or a SCADA server read or received the value. It comes from that machine's clock.
Ingest time
When the value was written to the store you query. After an outage it can trail source time by the length of the outage.

OPC UA makes the distinction explicit. Its data value structure has a field for each of the first two: a source timestamp, applied by the data source, and a server timestamp, the time the server received the value or last confirmed it. The specification requires the source timestamp in UTC, and leaves it empty when the source cannot apply one.

One detail catches anyone who polls. The source timestamp is meant to mark the last change of the value or its status, not the moment you read it, so an unchanged value comes back with the same timestamp on every poll. A poller keyed on source time sees repeats; one that substitutes its own read time turns an old value into an apparently fresh measurement.

The rule that follows is to prefer source time, fall back to receive time, and know which one each row holds. Fleetera's edge runtime, as one example, takes an OPC UA value's source timestamp when the server supplies one, the server timestamp when it does not, and the gateway's own clock only when neither is present.

UTC, local time and the hour that happens twice

Some controllers and loggers keep local wall-clock time, because that is what the person on site reads. It is fine on a display and a trap in storage: daylight saving makes it ambiguous once a year and discontinuous once a year.

In the European Union this happens twice every year. Summer time ends at 01:00 UTC on the last Sunday in October: in Central Europe that moment is 03:00 local summer time, the clocks go back to 02:00, and every local time from 02:00 to 02:59 occurs twice. Summer time starts at 01:00 UTC on the last Sunday in March: the clocks jump from 02:00 to 03:00, and that local hour never exists. In 2026 those Sundays are 25 October and 29 March, the dates the examples below use.

One local time in the repeated autumn hour in Central Europe, with 25 October 2026 as the example date, written four ways

Written asWhat it means
2026-10-25 02:30Ambiguous: 00:30 UTC or 01:30 UTC
2026-10-25T02:30:00+02:0000:30 UTC, the first 02:30
2026-10-25T02:30:00+01:0001:30 UTC, the second 02:30
2026-10-25T00:30:00Z00:30 UTC: the first 02:30, stored in UTC

Counted in local time, the autumn changeover day has 25 hours and the spring one 23. At a 10-minute interval that is 150 and 138 intervals instead of the usual 144. A store keyed on local time can merge or overwrite the two 02:30 readings, a daily total on local dates gains or loses an hour, and an availability figure that assumes a 24-hour day is wrong on both days, every year.

RFC 3339 requires a timestamp to state its relationship to UTC, either as Z or as a numeric offset such as +01:00. Store UTC. Keep each site's time zone as a property of the site, by its IANA name such as Europe/Zurich rather than an abbreviation like CET, which the IANA time zone database calls ambiguous in practice. Zone rules change when governments change them, so convert to local time only on the way out, for display and for reports that need local days.

A source that only knows local time needs the site's zone attached as close to the source as possible. Its readings from the repeated autumn hour cannot be resolved from the clock alone, so flag them rather than guess.

Clocks drift

Every clock runs at a slightly wrong rate, and a device that is never synchronized moves steadily away from true time. Two standard protocols keep clocks aligned. NTP, specified in RFC 5905, synchronizes computer clocks to UTC over packet networks. PTP, IEEE 1588, is designed for networked measurement and control systems and supports synchronization in the sub-microsecond range. Which one you need depends on the finest time difference your analysis has to resolve.

Synchronization fails quietly, so detect drift from the data itself:

  • Track the gap between source time and receive time for each device. It is transport delay plus clock error. Delay varies while clock error trends, so a gap that grows steadily is a clock that has stopped synchronizing.
  • Look for values measured after they were received. With two correct clocks that cannot happen, so a source time later than the receive time means one of the clocks is wrong.
  • Check events with a known order across devices, such as a breaker opening and the power drop that follows. An effect stamped before its cause means the two clocks disagree.
  • Watch for steps when a device resynchronizes: a step back overlaps timestamps, and a step forward leaves a gap that is not an outage.

Late data and arrival order

Field links drop. A gateway that buffers through an outage sends its backlog when the link returns, after fresher readings from sites that never lost theirs. Even with perfect clocks, arrival order is not event order.

Find out what order your pipeline promises. Often it is order within one asset's stream and nothing across assets, so anything that needs a sequence across assets, such as an alarm cascade through a substation, has to take it from the timestamps. The Learn guide "Store and forward at the edge" explains why a buffer's ordering guarantee stops at the asset.

Late data changes how KPIs are computed:

  • Compute on source-time windows, never on ingest time. A ten-minute bucket holds the readings measured in those ten minutes, whenever they reached the store.
  • Treat a period as provisional until its data is complete, recompute it when late readings land, and record when each figure was last recomputed.
  • Expect repeats. A buffer that resends a batch whose delivery was uncertain stores the same reading twice unless rows are keyed on device, signal and source time.
  • Separate missing from late. A gap in the last hour may still fill. The same gap a day later is lost data to report, not a period of zero output.

Availability is the first casualty

If a KPI ran before an asset's late data reached the store, the missing interval reads as unavailable or unknown, depending on the rule. Either way the figure changes when the backlog lands, so a report has to say which version it shows.

A checklist for your own pipeline

  1. For every data source, write down which clock stamps its readings: the device, a server, a gateway or the store.
  2. Keep source time and receive time as separate fields. Never overwrite one with the other.
  3. Store every timestamp in UTC, with Z or an explicit offset in any text format. Keep each site's IANA time zone as a property of the site.
  4. Resolve local-time sources to UTC close to the source, and flag readings from the repeated autumn hour instead of guessing.
  5. Synchronize every clock you control with NTP or PTP, and alert when a device's source-to-receive gap trends or turns negative.
  6. Compute KPIs on source-time windows, recompute when late data lands, and label figures that are still provisional.
  7. Take sequences across assets from timestamps, never from arrival order.
  8. Key readings on device, signal and source time, so a resent reading is stored once.

None of this needs new technology, only a decision about what each timestamp means, written down once, because every KPI inherits it. The Learn guides "Industrial data operations" and "Defining renewable energy KPIs that survive real data" cover the pipeline and the KPI definitions in more depth.

Timestamps in field data: four ways they quietly break your KPIs | Fleetera