Two readers see the same midnight in an export and do not see the same day. One applies the timezone of the device she opened it on. The other thinks the export reflects a reporting office’s local calendar. Both may be interpreting the display reasonably; the report left something unstated. A timestamp contract tells payroll reporting readers which times are instants and which entries are calendar labels.

Separate the clocks and the labels

Start with four questions, answered in plain language: when did a source observation occur, when did your reporting job receive it, when did your publication finish, and which period does the report describe? Include only the values a named consumer needs. A weekly report can reasonably need both the publication instant and the week label. Those values cannot be substituted for one another when a late run appears after the period closes.

Make a date-only field a date only if it truly expresses a calendar decision. A synthetic example can say “report week starts 2026-11-02” under an agreed calendar. That statement does not itself specify a moment represented by midnight in UTC. If a business date is inferred from a source instant, document which timezone governed the inference and why. Resist “local time” without naming whose local time is meant. Document the user-visible label and test it independently of the code that derives it.

For timestamp exchange, RFC 3339 supplies an Internet format with a timezone offset qualifier. It does not determine the period definition for your payroll report. An offset describes the relationship to UTC for the instant given; a named zone and clock rules may be needed to derive a business date or reproduce a future boundary. The authoritative IANA timezone database documents the timezone data project; name the data release your environment actually used if later reproducibility matters.

Make precision a business choice

People often assume precision displayed is accuracy available. A formatted line can display seconds even if the upstream observation is recorded to the minute or only as a date. Treat added digits as presentation unless their source supports them. If your logic truncates an instant to a minute, write down that behavior and specify whether two entries in the same minute have a different stable order; timestamp precision alone might not provide it. If an export drops the offset, do not call the result an unambiguous instant.

A deceptively challenging instant is the exact boundary. Ask whether the end of a reporting period is included. A half-open convention is one clear option: include the start and exclude the end, with the next period responsible for its own start. If the source has only date labels, use its declared calendar semantics instead of pretending the records were timestamped more precisely. Test the inclusion policy with an invented row immediately before the end and another exactly at the end.

Give ambiguous clock readings their own examples

In a timezone that falls back, the wall clock can display the same local time twice. Build two fixture instants with distinguishable offsets, then check that the consumer can tell them apart or that the canonical value stays unambiguous even if a display groups them. Spring transitions can skip local readings altogether. A fabricated nonexistent local time is useful for testing refusal; it should not silently roll forward unless reviewers explicitly adopted that interpretation for that source.

Check month and year rollovers too. A synthetic timestamp shortly after 00:00 UTC might still fall on the previous date for the local reporting calendar. In the synthetic fixtures, put these cases beside a plain weekday so a reader can tell which failures are boundary-dependent. Use an independent expected outcome; an expected answer made with the exact same production helper will copy the helper’s faulty assumptions.

A deliberately mixed-precision example is useful: Tuesday’s source gives observations to the second, Monday’s gives only dates. Reviewers can decide which display to permit without inventing a precision upgrade. If both days appear together, make the text or field type distinguish their provenance. Write the expectation before testing the rounding or rendering so the reviewer has a stable basis for flagging unexpected detail.

Check the reader’s edition, not just the serializer

Store a sample line and its human-readable edition. A machine exchange might be correct while a spreadsheet treats it as a plain string. A dashboard might convert a displayed time to a viewer’s device timezone without telling them. The contract should state which presentation is authoritative for the intended consumer, and the schema contract should explain null, absence, and invalid data separately. When local interpretations are allowed, document that they do not change the underlying observation.

When a timestamp defect is discovered, write down the edition and affected reporting span before troubleshooting. A later edition should identify which previous output it supersedes if readers already acted on the wrong day or copied figures elsewhere. Treat clocks as report data, not formatting polish. The reviewer of the release gate should be able to explain why a record belongs to one edition without reading a source timestamp out loud and hoping everyone hears the same date.