Skip to content

Commit

Permalink
Remove reference to ZonedDateTime in pgsql docs
Browse files Browse the repository at this point in the history
As of 1.0-RC3 the ZDT implicit is gone because it's never been correct with the actual data stored.
  • Loading branch information
Daenyth authored Oct 30, 2023
1 parent e79bab2 commit 1abc8c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/docs/src/main/mdoc/docs/15-Extensions-PostgreSQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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._
Expand All @@ -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`

Expand Down

0 comments on commit 1abc8c2

Please sign in to comment.