HL7 v2 timestamps without a time zone: in FHIR it has to be decided, not guessed
A v2 time without an offset is the sender's local time; FHIR requires the offset. Why UTC is the wrong default, why even the MSH-7 offset breaks with daylight saving time, and how to decide it in a project.
A synthetic patient update, trimmed to the essentials here, arrives from a hospital system. The header says when it was sent, with a time zone. The patient segment says when the patient was born, without one:
MSH|^~\&|PAS|RIVERLAND|GW|RCVFAC|20260918060000+1000||ADT^A08^ADT_A01|TEST002|P|2.5 PID|1||441122^^^RIVERLAND^MR||TESTPATIENT^ALEX||19800101120000|F
PID-7 is 19800101120000: 1 January 1980, 12:00. Noon where? The message doesn’t say. As long as the value stays in HL7 v2 that’s fine, because v2 has a rule for exactly this case. The trouble starts when the value is converted to FHIR, which does not accept a time of day without a time zone. Someone has to pick one. Two teams that build converters ran this message, and they made two different choices.
What HL7 v2 says
The definition of DTM, the v2 date/time data type, is explicit: when the time zone is not included, it defaults to the local time zone of the sender. The standard strongly recommends always sending the UTC offset, but does not require it. So a v2 time without an offset is not an error. It is a local time, and the “where” is implied by knowing who sent it.
That works inside a point-to-point interface, where the receiver knows perfectly well which hospital it is talking to. It stops working once the data leaves that context.
What FHIR requires
FHIR R4 is just as explicit in the other direction. A dateTime can be a year, a month, a date, or a date with a time; but if hours and minutes are present, a time zone shall be populated. A date, on the other hand, shall not carry one. FHIR resources travel: they get stored in repositories and read by systems that know nothing about the original sender. Implicit context doesn’t survive the trip, so it has to be made explicit.
Birth dates take one more step. Patient.birthDate is a date, so it holds only the day. The time goes into an extension defined by the FHIR specification, patient-birthTime, typed dateTime; its definition notes that it carries the date as well precisely so that time zone information can be communicated properly. The v2-to-FHIR Implementation Guide’s mappings do exactly this: PID-7 goes to birthDate, and when it is longer than eight characters the full value also goes to the extension.
How to convert the time itself is another matter. The guide’s DTM-to-dateTime map only says to convert the v2 format into the FHIR format. The place where the guide tackles the problem most directly is the map from MSH-7 to Bundle.timestamp: a note points out that MSH-7 does not require an offset while Bundle.timestamp does, and defers to configuration based on local context. For the other date/time fields we found no guidance on how to work out a missing offset: the choice is left to the implementer.
Two converters, two answers
We put the message above forward as a test case in a public discussion on chat.fhir.org, and two teams posted their output, the second in another thread in the same channel.
The first converter writes the time as UTC: 1980-01-01T12:00:00Z. The second takes the offset from the message header, MSH-7, and writes 1980-01-01T12:00:00+10:00. Both teams explained their choice openly. But the two values are ten hours apart, and at most one of them can describe the noon at which this person was born.
UTC is the simplest choice and the most dangerous one, because Z doesn’t mean “time zone unknown”. It means “this is UTC”. It’s a statement, and with a sender whose header declares +10:00 it’s false, with nothing in the resource to warn whoever reads it.
The MSH-7 choice is much more defensible, since it applies the v2 rule itself: the sender’s time zone. But it has a limit anywhere that observes daylight saving time. MSH-7 carries the sender’s offset at the moment the message is sent, not at the moment the converted value refers to.
Daylight saving time changes the answer
Take an Italian hospital sending a patient update in early October. Summer time is still in force, so MSH-7 carries +0200. The patient was born on 1 January 1980 at 00:30, with no offset in PID-7. Applying the MSH-7 offset gives 1980-01-01T00:30:00+02:00. But in January Italy is on standard time, +01:00: that instant, in Italian local time as it was then, is 23:30 on 31 December 1979. birthDate says 1980; the extension points to an instant in 1979. Any system that brings the full timestamp back to Italian local time and takes the date from there moves the patient to a different day and a different year.
The same mechanism applies to every time in the message, not just the birth. A discharge recorded at 23:30 on 31 March, converted as UTC, reads as 01:30 on 1 April for anyone viewing it in Italian time. In a monthly report that stay changes month. No validator will flag it: the value is formally perfect.
And there is one case no rule can settle. On the night clocks go back, 25 October in 2026 across the EU, the hour between 02:00 and 03:00 happens twice. A local time in that hour with no offset is ambiguous by construction.

The time zone is a design decision
As with other things a v2 message leaves implicit, and as the guide itself says for MSH-7, the answer belongs in configuration, not in the mapping. This is what we recommend:
- configure a geographic time zone per sending system, such as
Europe/Rome, not a fixed offset such as+01:00: the zone knows about daylight saving, the offset doesn’t; - compute the offset for the date of the value being converted, not the date of the message, so a January birth gets standard time even in a message sent in August;
- when the v2 value already has an offset, use it as is;
- a date without a time stays a date: don’t invent a midnight;
- never fall back to
Z; - the conversion report states, for every time value, whether the offset came from the message or was assigned, and flags times that fall in the repeated autumn hour as ambiguous.
Then there’s the fix at the source: ask sending systems to include the offset in every time field, as the v2 standard already recommends.
Which gives two questions to ask at the start of any v2-to-FHIR integration project. To the vendors of the source systems: do your messages carry a time zone in every date/time field? To whoever builds the conversion: when the offset is missing, which one do you apply, do you compute it for the date of the value, and does the report say which times you filled in yourselves?