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

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