Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vMbio-00EW2g-2V for pgsql-general@arkaria.postgresql.org; Sat, 22 Nov 2025 00:43:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vMbin-00AJ54-0E for pgsql-general@arkaria.postgresql.org; Sat, 22 Nov 2025 00:43:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vMbim-00AJ4v-2J for pgsql-general@lists.postgresql.org; Sat, 22 Nov 2025 00:43:25 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vMbik-000oSO-2U for pgsql-general@postgresql.org; Sat, 22 Nov 2025 00:43:24 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-b73161849e1so267913766b.2 for ; Fri, 21 Nov 2025 16:43:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1763772200; x=1764377000; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=VvPGTblVPo8ZiDclRJLniJQsm2tFhVOmvSVL93t6m50=; b=LeLNONokMKTgWTE457RQOwWEb24GAHGgYNgEyn4yCKCpMJi+oE+R4LEFXphjve/XtW q2QMpGiXMWPSD/iLvEN5sskdA2XGq49/2CDaFgivaIQjqdL4OduM/LuBYqkqsp9tikcX aF2sAU+FEcC6PDgfWGpWy0bdC4Z1+xV8Wgzb2kMoh9QZv3rvVvqelQYXXGMtSxvdMGvN HDaIrw0bxOI9oZ1bVpK5gfBmzwf9wzSKDPXf72myHPyD/cSb8ThBgYkVVtGb/XJ752EX YFGn1S7d4uUA5lI0pZMkzz6juIXfo7waML7L3hXKEnnCHPl4VMvx60+paTbPgJhU9hN4 yPbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763772200; x=1764377000; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VvPGTblVPo8ZiDclRJLniJQsm2tFhVOmvSVL93t6m50=; b=sXGxzmp98uSiCrwVbosTMIetPE9cHanMfpggNj+9xp3wSXDgWAGWuC6P7vcvuqmVUL Sg2qv1ODA9FsBmDifmPYygB0fUprDvd6C07jlKuo30rhKmhWby+uizKs580wuogirVe2 DhqcV4pcXhIF5BmawXak1VXAwHXhCGmWYt80MKXfqSXVF51wQs3DKQdZXn3M6+SixUBx kAGoD3T5QWCKw8odn2y8ISA2jKcnh4+oTZAVSYwXXrr09ROT+U7euIYGro4n1IIJUq3Q uJsAJ6zU+87IfKaeotyUN9cIhjH5GR8Q8TkvFe5lVNtBCQQzh99gl7Vw5+ofo2ZFn/m1 4lUg== X-Forwarded-Encrypted: i=1; AJvYcCX2J9fUEWUO3mXBaRyg7JNMJKqsJLgB9mvONX/yBPsNt5Kd8IiAKQQ4fNl4TmQ+OjpSVevppIjS77QgPmz/@postgresql.org X-Gm-Message-State: AOJu0YzccVOKV2mJWq6+kRa0OvqYp+QfV/UyVvgZPbyZpPkjD7eutGDG 6SMt68NLTT6JNfIszhl0EDQnJU15fi/PEDZjzFJslk9SW5LrI6f+j0wumW/2E80cMb6N6HQ6qNF i4Gi4JwY= X-Gm-Gg: ASbGncu46FxANveO2qoWxE7S8ap61SUr2EmxfyEXKm+y2qHP7jn7nfeZPNPFVUf3AiS 6qvCjbjHg50pEBgpSc0R4CgukP3x4chRFCHGIYFQjH1EdVG3i+/64Itg16UI5vfjzxjM6B0hs7F 4AnaFfXoCFIFYhKXf/euYJPShczCPJuHUzgy17cKb5LHYDHQam01e09a69NM0gphgy6vkuMp43T 26ZwBCTN5+NYzZKAnVadBZsDdxUzQsue72DljwXdUY/1nFdRLJrFhfP1Wh1dJlCDf6Hal0hGaaV iMq7AA87K46xQGQvG14i/cri2NDWYW442wW0RQ48qpcAgtJPHPQ2cMQ2bK6iBOkF7il03T/qeZ6 p2F2ZBG8fNWxAqw98N0/K/wEKdvjb4a9HlpKU47660Y3QR5PjF4BSmeayGX29DGGx5XBN8DJrdX mibbEBsprWHj6Bt4fg2tpJ1JOFnbcTp79zgA6iWv10 X-Google-Smtp-Source: AGHT+IHFLfX+IBpzhrt/Az6ND8uGLXjJjH5RP4sr0wL2WOR5KjYXdNiCLxkoMbBJG2W8k1xoaEGJVg== X-Received: by 2002:a17:907:94c4:b0:b72:6ace:e5b6 with SMTP id a640c23a62f3a-b767150b7cbmr466495366b.10.1763772200195; Fri, 21 Nov 2025 16:43:20 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:270:1ce:374:d99c:26de:53b0]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b7655051625sm581338166b.65.2025.11.21.16.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Nov 2025 16:43:19 -0800 (PST) Message-ID: <2e2a34695d84a297e62a2996466fecf97005a2fb.camel@cybertec.at> Subject: Re: Unexpected date conversion results From: Laurenz Albe To: Adrian Klaver , Steve Crawford , PG-General Mailing List Date: Sat, 22 Nov 2025 01:43:19 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2025-11-21 at 16:38 -0800, Adrian Klaver wrote: > > There was a time, like version 9-dot-something, when the above queries= =20 > > performed as expected returning midnight in the current time zone but I= =20 > > haven't been able to find a change document indicating this as an=20 > > expected change. >=20 > I don't remember that, but as the gray content of the hair increases the= =20 > memory is less solid:) I dug into the git history, and it has been like that since commit b3506006= b564 in 2002 (way before version 9.x). That commit fixed a bug that returned te= n time the correct reault (but still offset from the UTC epoch). Yours, Laurenz Albe