Skip to content

[9.0] Fix date/time mapping round-tripping and cloning - #4038

Merged
roji merged 1 commit into
hotfix/9.0.5from
roji-9-0-date-time-backport
Oct 18, 2026
Merged

roji merged 1 commit into
hotfix/9.0.5from
roji-9-0-date-time-backport

Conversation

@roji

@roji roji commented Oct 18, 2026

Copy link
Copy Markdown
Member

Backports #4022, using the final merged commit b038505, to hotfix/9.0.5.

All four bugs are present on 9.0:

  • Preserve TimestampTzMultirange when cloning NodaTime Interval array/list mappings and configuring parameters.
  • Preserve offset minutes in timetz SQL literals, embedded literals and JSON, retaining existing whole-hour output and the merged invariant formatting.
  • Honor requested precision when cloning LocalDateTime timestamp mappings.
  • Read existing ZonedDateTime JSON with nonzero offsets as fixed-offset zones. Keep the writer and its six-digit precision unchanged; named-zone persistence is outside this fix.

The product changes are identical to the four mapping-class changes in the final merged source. Adapt the JSON functional regressions to EF9 OwnsOne/OwnsMany with ToJson, asserting exact EF9 SQL. No dependency, query-pipeline, persisted-format or unrelated BCE changes.

Verification

Using .NET SDK 10.0.300 with runtime major-version roll-forward and PostgreSQL 18.4:

  • Before the product fix: 20 targeted mapping regression cases failed, reproducing all four bugs.
  • Mapping suites: 276 passed, 6 existing skips.
  • Relevant JSON/date-time functional suites, including the owned JSON regressions and timetz JSON cases: 833 passed, 8 existing skips.

Fixes #4018
Fixes #4019
Fixes #4020
Fixes #4021

Backport #4022 (b038505), adapting the JSON query regressions to EF9 owned JSON APIs and generated SQL.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 1583790d-3137-465c-80a4-4634205cc8f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant