Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlepS-0000Cs-L1 for pgsql-jdbc@arkaria.postgresql.org; Mon, 02 May 2022 22:47:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nlepR-0007Kn-0C for pgsql-jdbc@arkaria.postgresql.org; Mon, 02 May 2022 22:47:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlepQ-0007JV-Nq for pgsql-jdbc@lists.postgresql.org; Mon, 02 May 2022 22:47:40 +0000 Received: from out-19.smtp.github.com ([192.30.252.202]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlepK-0002tb-PJ for pgsql-jdbc@lists.postgresql.org; Mon, 02 May 2022 22:47:39 +0000 Received: from github.com (hubbernetes-node-add172c.va3-iad.github.net [10.48.221.43]) by smtp.github.com (Postfix) with ESMTPA id D3A86E0617 for ; Mon, 2 May 2022 15:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1651531653; bh=EKzP/efW9Zxi09zBi0ocjz35B9o02aCChAMhRQtjuBY=; h=Date:From:To:Subject:From; b=arHWqd3/2UFl7u2DEkE4oDt3UXtg2563R5IxcjFrnk02UUKJU31jgVSDATSimMK2+ mKM+ayPon3l415t7AlWIMSxxxKzn1ibuL1rlJucrY3sFsvs8Vuy7ootpYelPgTolPy hjaFk7oyY1ztSAXHG1cqIoUGV6zkcebQEkupfu1I= Date: Mon, 02 May 2022 15:47:33 -0700 From: Dave Cramer To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 4d711c: fix: revert removal of toOffsetDateTime(String tim... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 4d711c2a97175ad4c034c4629d2a993600cd0264 https://github.com/pgjdbc/pgjdbc/commit/4d711c2a97175ad4c034c4629d2a993600cd0264 Author: Dave Cramer Date: 2022-05-02 (Mon, 02 May 2022) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java M pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java Log Message: ----------- fix: revert removal of toOffsetDateTime(String timestamp) fixes #Issue 2497 (#2501) * fix: revert removal of toOffsetDateTime(String timestamp) fixes #Issue 2497 * resurrected OffsetDateTime toOffsetDateTime(Time t) for completeness * move handling of UTC for string OffsetDateTime to call site to retain the original function signature of TimestampUtils.toOffsetDateTime * check for +/- infinity before setting timezone to UTC