How to validate transport timestamps across time zones
Compare event times as instants, then display them in the appropriate local time zone. Keep the original value alongside the normalized time so a day shift can be explained later.
Retain the original value, instant and event meaning.
RFC 3339 represents timestamps using UTC or a numerical offset. Where your interface supports it, keep that offset for the reported event. Track an IANA zone separately when you need to reconstruct local display or schedule rules. An offset does not identify a zone by itself.
Keep event time and ingestion time in separate fields. A carrier may upload yesterday’s delivery today; that does not change when the delivery happened. Likewise, a local date without a time is not a UTC instant.
Midnight and daylight saving expose different errors.
| Input | Correct handling |
|---|---|
| 2026-12-01T00:15:00+01:00 | Same instant as 2026-11-30T23:15:00Z. Keep 1 December as the local event date where applicable. |
| 02:30 during the autumn clock change | May represent two instants. Ask for the offset or authoritative event evidence. |
| Event time before pickup, uploaded after delivery | Compare the normalized event times against the workflow. Do not repair chronology using the upload clock. |
Test the conversion and the workflow independently.
Use fixtures for UTC rollover, a repeated local hour, a missing offset and late delivery of an earlier event. Verify planned and actual timestamps are checked against separately configured rules. Preserve arrival order and event order so a replay remains explainable.