Skip to content

Commit

Permalink
Merge pull request #1936 from tpolecat/Daenyth-patch-1
Browse files Browse the repository at this point in the history
Remove reference to ZonedDateTime in pgsql docs
  • Loading branch information
jatcwang authored Nov 7, 2023
2 parents ed18814 + 1abc8c2 commit 6348593
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 6348593

Please sign in to comment.