From 1abc8c244a499d034c0b6416e5b932c4dfc01139 Mon Sep 17 00:00:00 2001 From: Gavin Bisesi Date: Mon, 30 Oct 2023 10:06:36 -0400 Subject: [PATCH] Remove reference to ZonedDateTime in pgsql docs As of 1.0-RC3 the ZDT implicit is gone because it's never been correct with the actual data stored. --- modules/docs/src/main/mdoc/docs/15-Extensions-PostgreSQL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/docs/src/main/mdoc/docs/15-Extensions-PostgreSQL.md b/modules/docs/src/main/mdoc/docs/15-Extensions-PostgreSQL.md index eac4f797a..78c65bde5 100644 --- a/modules/docs/src/main/mdoc/docs/15-Extensions-PostgreSQL.md +++ b/modules/docs/src/main/mdoc/docs/15-Extensions-PostgreSQL.md @@ -77,7 +77,7 @@ import doobie.postgres.implicits._ ### Java 8 Time Types (JSR310) -An explicit import is required to bring in mappings for `java.time.OffsetDateTime` / `java.time.Instant` / `java.time.ZonedDateTime` / `java.time.LocalDateTime` / `java.time.LocalDate` / `java.time.LocalTime` +An explicit import is required to bring in mappings for `java.time.OffsetDateTime` / `java.time.Instant` / `java.time.LocalDateTime` / `java.time.LocalDate` / `java.time.LocalTime` ```scala mdoc:silent import doobie.postgres.implicits._ @@ -87,7 +87,7 @@ To ensure **doobie** performs the conversion correctly between Java 8 time types The correct combination of date/time types should be used: - `TIMESTAMP` maps to `java.time.LocalDateTime` -- `TIMESTAMPTZ` maps to `java.time.Instant`, `java.time.ZonedDateTime` or `java.time.OffsetDateTime` +- `TIMESTAMPTZ` maps to `java.time.Instant`, or `java.time.OffsetDateTime` - `DATE` maps to `java.time.LocalDate` - `TIME` maps to `java.time.LocalTime`