When a timestamp stops being decoration
Most timestamps you touch in a normal week are metadata. A created_at on a dashboard row, a log line you scroll past, a chart axis — if the value is off by a thousand or lands in the wrong zone, nothing bad happens and nobody ever checks. The tolerance is generous because the stakes are low.
Then there are the timestamps that are evidence. An incident report that says "unauthorized access began at 08:15 and the session was revoked at 08:16:30" is making a claim about the world, and the two log lines behind it are the proof. The same standard applies to audit logs attached to a compliance review, a billing period boundary that decides which charges land on an invoice, and an SLA claim that hinges on whether a fix landed inside the promised window. In every one of these, the conversion from raw number to human-readable moment is part of the claim. If the conversion is wrong, the report is wrong — even though every log line was faithfully copied into it.
That is a different bar from "the date looked plausible." Plausibility is exactly what a wrong unit defeats: the misconverted value still looks like a date, sorts like a date, and renders like a date. The failure is quiet until a reviewer asks where, precisely, 08:16:30 came from. If you cannot answer with a documented unit and zone, the answer is a guess wearing a timestamp’s clothes. Our guide on seconds versus milliseconds covers why bare integers cannot announce their own unit; this guide is about what to do when it matters.
The six-point audit checklist
Run these six checks against every timestamp that carries evidentiary weight. Each one is fast; the discipline is applying them before the report goes out, not after a reviewer asks.
1. The unit is named, never assumed
A raw integer carries no unit, so the unit has to come from somewhere: a schema, a runbook, an API contract, or an explicit suffix like ts_ms. "It looked like milliseconds because it was long" is not documentation. If the source genuinely does not state the unit, the audit record must say so — and the conversion should be validated against an anchor (a paired value whose true time you know independently) rather than against digit count.
2. The zone is named, never assumed
The epoch is anchored to UTC, but plenty of systems log local time, and a log line with no zone is a guess. "23:50" means two different instants depending on whether the writer meant UTC, the server’s local zone, or whatever the viewer’s browser assumed. For evidence, every timestamp in the report should resolve to an unambiguous UTC instant, and the zone used for that resolution should be written down. Note that HTTP headers follow their own conventions here — Date is always a formatted GMT string, never an epoch number — and our guide on JSON in HTTP headers covers those rules.
3. The instant is in range
Sanity-check the output against the period it claims to describe. A value of 55827 is not October 2026 in any unit; a converted date of 1970-01-20 is the signature of a seconds value that was divided by 1000. Out-of-range dates are the loudest failure mode and still slip through, because they break sorting or get clamped by a library before a human sees them. The check costs one glance: does the resolved instant fall inside the incident window, the billing period, or the SLA interval it is cited for?
4. Fractional seconds are consistent
If one source emits 2026-10-26T08:15:00.000Z and another emits 2026-10-26T08:15:00Z, decide deliberately whether fractional seconds appear at all, and then be consistent. The inconsistency is not just cosmetic: naive string comparison sorts 08:15:00.500Z before 08:15:00Z because the period sorts before letters in ASCII, which can quietly reorder events that a report then narrates in the wrong sequence. Pad every value to the same precision, or truncate every value, and note which you did.
5. Ordering is preserved across sources
The narrative says A happened before B; the milliseconds have to agree. This is where mixed-unit sources bite hardest, because each value can be individually plausible while the pair is mutually inconsistent. Convert everything to one unit — milliseconds is the safe default — and check that the numeric order matches the narrative order. Two events that look simultaneous deserve a second look: truncation to whole seconds can flatten a real 900-millisecond gap into a tie, and the tie then gets resolved by whichever system logged first.
6. Calendar-day spans get a DST note
Any claim phrased as a calendar day in a local zone — "all charges on November 1", "uptime for the day" — inherits daylight saving time. In US Eastern, November 1, 2026 is a 25-hour day; the wall-clock boundary and the elapsed duration disagree by an hour. A 24-hour filter silently drops the repeated hour’s data, and an SLA measured in local wall-clock hours differs from one measured in UTC. The audit note does not need a timezone treatise; it needs one sentence stating which zone defined the day and whether a DST transition fell inside the span.
| Check | The failure story it prevents |
|---|---|
| 1. Unit named explicitly | A seconds value read as milliseconds throws the event back to January 1970; a milliseconds value read as seconds lands fifty thousand years out. Both still look like dates. |
| 2. Zone named explicitly | Two systems log "23:50" for events nine hours apart, because one wrote UTC and one wrote local time. The report merges them into one incident. |
| 3. Instant in range | 55827 survives review as "October 2026" because nobody checked the value against the incident window. |
| 4. Fractional seconds consistent | A string sort interleaves .500Z before Z values, and the report narrates the reordered events as fact. |
| 5. Ordering preserved | The narrative says revoke happened after lockout, but one source was milliseconds and one was seconds, so the converted pair contradicts the story. |
| 6. DST note for day spans | A "one-day" billing window in US Eastern actually spans 25 hours on November 1, and the filter quietly loses the repeated hour. |
Walkthrough: auditing two log lines in Timestamp Explorer
Here is the checklist in action, using two fictional log lines from different systems involved in the same incident. The narrative claim under review: the lockout threshold tripped first, and the session was revoked afterward.
auth-svc: ts=1793002500000 event=lockout_threshold_tripped actor=svc-batch
billing-gw: ts=1793002590 event=session_revoked session=9f2c
Open the Timestamp Explorer and audit both lines. Nothing is pasted to a server; the conversion runs locally, which matters when the log lines are evidence from a real incident. First pass: assume both values are milliseconds — the most common convention and the most common trap. Enter each value with the unit set to milliseconds:
// First pass: both values converted as milliseconds
new Date(1793002500000).toISOString();
// "2026-10-26T08:15:00.000Z" (auth-svc: plausible, inside the window)
new Date(1793002590).toISOString();
// "1970-01-21T18:03:22.590Z" (billing-gw: the session was revoked in 1970?)
The auth-svc line passes checks 1 through 4 and produces a credible instant. The billing-gw line fails check 3 spectacularly: January 1970 is not inside any incident window. Now the useful question is not "which value is broken" but "by how much." The two raw values differ by almost nothing in magnitude — 1793002500000 versus 1793002590 — yet they are being interpreted as instants half a century apart. That gap is the signature of a unit mismatch, and the ratio between the two interpretations of the same integer is exactly 1000. Multiply the billing-gw value by 1000 and you get 1793002590000 — which is the auth-svc magnitude, plus 900000: ninety seconds in milliseconds. The hypothesis writes itself: billing-gw emits seconds, auth-svc emits milliseconds, and the narrative order is intact once each value is converted in its own unit.
An audit is allowed to conclude "the unit is not documented." It is not allowed to paper over that gap. A report line that says "converted as seconds per the billing-gw runbook, section 3.2" is evidence; a bare converted date is a guess the reviewer cannot retrace.
Second pass: re-enter the billing-gw value in the Timestamp Explorer with the unit set to seconds, and re-run the order check with everything in milliseconds:
// Second pass: billing-gw re-entered as seconds
new Date(1793002590 * 1000).toISOString();
// "2026-10-26T08:16:30.000Z" (inside the window, after the lockout)
// Order check, both sources now in milliseconds
const authMs = 1793002500000; // 08:15:00.000Z
const billMs = 1793002590 * 1000; // 1793002590000
billMs - authMs;
// 900000 → the revoke happened exactly 90 seconds after the lockout tripped
Every check now passes: each unit is accounted for (auth-svc milliseconds, billing-gw seconds), both zones resolve to UTC, both instants sit inside the incident window, neither value carries fractional seconds, and the numeric order — lockout at 08:15:00, revoke at 08:16:30 — matches the narrative. The 1000x disagreement that the first pass surfaced was not an error in the logs. It was an error waiting in the conversion, and the checklist caught it before a reviewer could.
Documenting the audit
The walkthrough only counts as an audit if the trail survives. Whoever reviews the report later — a colleague, an auditor, you in six months — needs to be able to retrace the conversion without redoing the investigation. The record is short: the raw inputs exactly as they appeared, the unit and zone chosen for each, where that choice came from, and the outputs. For the walkthrough above:
Incident INC-4117 — timestamp audit — 2026-10-26
Source A auth-svc log line input: ts=1793002500000
unit: milliseconds (per auth-svc runbook) zone: UTC (per runbook)
Source B billing-gw export input: ts=1793002590
unit: seconds (1000x mismatch vs Source A; confirmed vs runbook)
zone: UTC (stated in export header)
Outputs A → 2026-10-26T08:15:00.000Z
B → 2026-10-26T08:16:30.000Z
Order A precedes B by 90 s — consistent with the narrative
DST No transition inside the incident window; UTC throughout
Two habits make this record cheap to keep. First, do the conversion in the same place every time, with the inputs copied verbatim — a value retyped from memory is a new claim that nobody audited. Second, keep the record next to the claim it supports, not in a separate log nobody opens. The point is not bureaucracy; it is that "where did 08:16:30 come from" should have a one-paragraph answer.
Run this checklist once and it becomes fast; run it on every evidentiary timestamp and it becomes instinct. To fold the steps into a standing routine — the same inputs, the same unit decision, the same order check every time — see our guide on a repeatable timestamp verification process.
Reproduce every example locally with the JSON Inspector or the matching tool on the workbench. Nothing you paste leaves your browser.