# A photo timestamp can point to two different instants

When an album importer sees two pictures stamped 01:30 on the same day, it can be tempting to treat the timestamp as evidence that the pictures belong to the same burst. On the night clocks move back, that local time can occur twice. The camera text alone cannot say which instant it represents.

## Keep the wall time and its evidence

In a migration report, keep the source timestamp as written, the recorded offset if there is one, and the provenance of any time-zone setting you add. If the device recorded only a local time, mark the instant as unresolved until you have enough context. The day shown in a viewer can still help locate an event, even when precise ordering is unknown.

Here is a synthetic fixture for Los Angeles. Set both fold values and convert each result to UTC before comparing them. This illustrates an ambiguity for a known zone and transition date. It does not infer a zone from an image.

```python
from datetime import datetime, timedelta, timezone
from zoneinfo import ZoneInfo

zone = ZoneInfo("America/Los_Angeles")
wall_time = datetime(2025, 11, 2, 1, 30)
earlier = wall_time.replace(tzinfo=zone, fold=0).astimezone(timezone.utc)
later = wall_time.replace(tzinfo=zone, fold=1).astimezone(timezone.utc)

assert later - earlier == timedelta(hours=1)
print(earlier.isoformat())
print(later.isoformat())
```

The example prints 08:30 UTC and 09:30 UTC on the same date. The test uses Python 3.9 or newer and an available IANA time-zone database.

## Add a conservative review rule

Treat a timestamp match as a reason to compare two files, not a reason to discard either one. If the source includes a trustworthy offset, normalize the instant to UTC for sorting while retaining the original text. If the offset is missing and the hour is ambiguous, keep both entries visible and group only on evidence suitable for that purpose, such as exact-byte comparison or a reviewer-confirmed event.

[Reference: Python zoneinfo documentation](https://docs.python.org/3/library/zoneinfo.html). AI assisted with drafting. The timestamps are synthetic and the two outcomes were checked locally.
