﻿# Repeated local timestamps: disambiguate daylight-saving folds before feature joins

Repeated local timestamps: disambiguate daylight-saving folds before feature joins. A practical data-quality guide with failure mechanisms, validation steps, acceptance evidence and primary references.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/dq-dst-fold-point-in-time-joins/
Language: en

An event feed stores local wall-clock timestamps without the offset. During a clock transition, distinct events share the same displayed time and receive the wrong historical feature values.

## The mechanism that changes the example

A local timestamp can be ambiguous. Assigning a timezone after parsing is a decision about the instant, not merely a display change; silently choosing a fold can reorder real events.



## Define the comparison boundary

A timezone-aware instant and a local wall-clock spelling are different artifacts. During a repeated interval, the fold choice can select distinct instants with the same local text. Preserve the evidence used to make that choice instead of inferring it from a desired label match.

Record the zone and relevant timezone-data identity with a historical release. Assigning a zone to naive text interprets that text; converting an already identified instant to another zone preserves the instant. Treat these operations separately in the loader.

For the join fixture, first establish absolute instants, then apply the temporal matching policy. Keep unresolved local times outside a supposedly exact historical match. A pipeline that sorts all ambiguous text successfully can still attach the wrong previous state when the source never supplied enough information to distinguish the repeated occurrence.

## A constructed test case

Give repeated wall-clock text to distinct source events with known offsets. Their absolute instants must remain distinct after export. A second fixture omits offset evidence and must remain unresolved rather than inherit an arbitrary instant.

## A reproducible validation procedure

Build a fixture spanning the repeated interval with known offsets. Normalize explicit instants, preserve the original zone and compare historical joins. Quarantine rows for which the source cannot distinguish the repeated occurrence.

Include an unchanged control and a deliberately invalid case. Verify that the checker distinguishes them before testing the complete release.

Exercise the actual preparation path, including later serialization and reload. Limit retained diagnostic content to the evidence required for this comparison.

## Evidence needed for acceptance

Review a mapping from source clock text and offset evidence to the selected absolute instant.

## Containment and recovery

Timezone libraries cannot infer an absent source offset reliably from the surrounding training labels.

Quarantine an invalid release candidate or use an explicit partial-release rule. Preserve the last approved artifact and record corrections without silently rewriting historical inputs.

## Interpretation and references

Implementation references: [Python timezone handling](https://docs.python.org/3/library/zoneinfo.html); [pandas as-of joins](https://pandas.pydata.org/docs/reference/api/pandas.merge_asof.html).

This is a proposed engineering validation, not an executed Retrivium benchmark. Documentation specifies interfaces; dataset acceptance needs its own evidence and must be repeated after relevant dependency changes.

## Related reading

Continue with [TimeSeriesSplit gap: row separation and information availability differ](/journal/data-guide-temporal-split-availability/); [Apache Iceberg: snapshot identity and schema evolution in ML data](/journal/data-guide-iceberg-snapshot-schema-evolution/). These guides supply adjacent context; the decision in this article remains the specific example-preservation check above.
