Skip to content

Document three-argument ConvertTimeBySystemTimeZoneId translation - #471

Merged
roji merged 1 commit into
mainfrom
roji-explicit-source-timezone-translation
Oct 12, 2026
Merged

roji merged 1 commit into
mainfrom
roji-explicit-source-timezone-translation

Conversation

@roji

@roji roji commented Oct 12, 2026

Copy link
Copy Markdown
Member

Add one row to the existing date/time translation table for TimeZoneInfo.ConvertTimeBySystemTimeZoneId(dateTime, sourceTimeZoneId, destinationTimeZoneId), introduced in EFCore.PG 11.0.

Document (dateTime AT TIME ZONE sourceTimeZoneId) AT TIME ZONE destinationTimeZoneId, the required timestamp without time zone input, the timestamp without time zone / DateTimeKind.Unspecified result even for UTC destinations, and the unsupported DateTimeOffset overload. Leave the existing two-argument overload unchanged.

Provider implementation: npgsql/efcore.pg#3939.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: dab05258-0495-467d-920c-8b811a77bdf8
Copilot AI balanced review requested due to automatic review settings October 12, 2026 11:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The documentation accurately reflects the linked provider implementation and its constraints.

0 open findings

What changed in this PR

Documents the EFCore.PG 11.0 translation for the three-argument time-zone conversion overload.

Changes:

  • Adds the generated PostgreSQL expression.
  • Documents input, result-kind, and DateTimeOffset limitations.
File Description
conceptual/​EFCore.PG/​mapping/​translations.md Adds the new translation-table entry.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@roji
roji merged commit 7124979 into main Oct 12, 2026
2 of 3 checks passed
@roji
roji deleted the roji-explicit-source-timezone-translation branch October 12, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants