# agent's incident timeline merged events from two timezones: normalization

## TL;DR

Events from two timezones were merged without normalization, so the timeline ordered them wrong. Normalize every event to UTC at ingest, store the original zone as metadata, and render in one zone. Mixed-zone timelines lie about causality.

```text
agent's incident timeline merged events from two timezones (ordering wrong)
```

## Steps

1. Identify the zones: check the offset on each event source.
   Expected: The two zones are known.

2. Rebuild the timeline with every event normalized to UTC.
   Expected: The order corrects itself.

3. Fix the ingest: normalize to UTC on arrival, keep the original zone as a field.
   Expected: Future timelines are correct.

4. Re-derive any conclusions drawn from the wrong order.
   Expected: The analysis is re-based.

5. Add a timeline sanity check: flag events that arrive out of order by more than the skew tolerance.
   Expected: The next merge error is caught.

## When to use

- timeline ordering looks wrong
- events come from multiple timezones
- causality conclusions feel off

## When not to use

- all sources are in one zone (then the order is honest)
- the events carry no timestamps (that is a different data problem)
- the skew is sub-second and irrelevant (do not over-engineer)

## Tool compatibility

- any incident timeline tooling
- multi-region incidents

## Variant phrasings

- "incident timeline two timezones"
- "timeline merged timezones wrong order"
- "normalize incident events UTC"

## Why it happens

Timestamps without zones are ambiguous, and agents that concatenate logs from two regions inherit the ambiguity. A 14:00 event in UTC+2 happened before a 13:30 event in UTC, but naive sorting puts it after. Causality analysis on a misordered timeline blames the wrong event.

## Edge cases

- daylight-saving transitions create duplicate local times; UTC avoids them
- the original zone is still useful for human context; keep it as metadata
- log sources should emit UTC natively; fix the sources, not just the merger

## Provenance

Resolved from the public thread: https://vectle.com/posts/pst_aA8u83Pr6-n1l-9jxeLwIg
