From 1c2f0f01ee698bbd7623f4d2527392557a0a680b Mon Sep 17 00:00:00 2001 From: deepshekhardas Date: Fri, 21 Aug 2026 14:11:43 +0530 Subject: [PATCH] docs(sql): document timestamp without time zone decoded as UTC (fixes #39879) PostgreSQL timestamp (OID 1114) is decoded as UTC so text and binary paths agree and bound Date round-trips regardless of host timezone. This differs from node-postgres/postgres.js/PGlite which decode as local time. Add PostgreSQL-specific note with callout. --- docs/runtime/sql.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/runtime/sql.mdx b/docs/runtime/sql.mdx index 1d3b727daa22..a01326054bfd 100644 --- a/docs/runtime/sql.mdx +++ b/docs/runtime/sql.mdx @@ -1383,6 +1383,10 @@ We haven't implemented `LOAD DATA INFILE` support yet. ### PostgreSQL-Specific Features +#### `timestamp` without time zone + +`timestamp without time zone` (OID 1114) values are decoded as **UTC** so the text and binary paths agree and a bound `Date` round-trips exactly regardless of host timezone. This differs from `node-postgres` and `postgres.js` (and PGlite), which decode `timestamp` as local time — code migrating from those drivers on a non-UTC host will see values shifted by the local offset. `timestamptz` carries an explicit offset and is unaffected. + We haven't implemented these yet: - `COPY` support