[pgjdbc/pgjdbc] 4d711c: fix: revert removal of toOffsetDateTime(String tim...

From: Dave Cramer <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 4d711c: fix: revert removal of toOffsetDateTime(String tim...
Date: 2022-05-02 22:47:33
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/8444ed-4d711c@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 4d711c2a97175ad4c034c4629d2a993600cd0264
https://github.com/pgjdbc/pgjdbc/commit/4d711c2a97175ad4c034c4629d2a993600cd0264
Author: Dave Cramer <davecramer(at)gmail(dot)com>
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

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2022-05-03 15:40:58 [pgjdbc/pgjdbc] c04582: chore: use GitHub Action concurrency feature to te...
Previous Message Dmitriy Mukhin 2022-05-02 13:36:20 [pgjdbc/pgjdbc] 8444ed: feat: targetServerType=preferPrimary connection pa...