Render an instant in timeZone and name that zone, so a reader never has to guess which clock
the time came off. The zone is omitted when Intl has no name for it, rather than leaving a
trailing space.
The single place that decides what a rendered document date looks like: formatDateForEvaluation
and EMRDocumentBuilder.formatDate both go through here, so the two cannot drift.
Takes the instant and the zone to show it in — resolving the value and choosing that zone are
the caller's job, done by the time this is reached.
Render an instant in
timeZoneand name that zone, so a reader never has to guess which clock the time came off. The zone is omitted whenIntlhas no name for it, rather than leaving a trailing space.The single place that decides what a rendered document date looks like:
formatDateForEvaluationandEMRDocumentBuilder.formatDateboth go through here, so the two cannot drift.Takes the instant and the zone to show it in — resolving the value and choosing that zone are the caller's job, done by the time this is reached.