You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Mark Struberg (Jira)" <ji...@apache.org> on 2021/04/08 12:43:00 UTC
[jira] [Assigned] (OPENJPA-2863) java.time.LocalDateTime at
LocalTime.MAX in Oracle gets rounded to the next day atStartOfDay
[ https://issues.apache.org/jira/browse/OPENJPA-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg reassigned OPENJPA-2863:
--------------------------------------
Assignee: Mark Struberg
> java.time.LocalDateTime at LocalTime.MAX in Oracle gets rounded to the next day atStartOfDay
> --------------------------------------------------------------------------------------------
>
> Key: OPENJPA-2863
> URL: https://issues.apache.org/jira/browse/OPENJPA-2863
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 3.1.2
> Reporter: Karl Grosse
> Assignee: Mark Struberg
> Priority: Major
>
> Having a column like
>
> {code:java}
> @NotNull
> @Column(name = "awayUntil", nullable = false)
> private LocalDateTime awayUntil;
> {code}
> which we set to
> {code:java}
> awayUntil = LocalDate.of(2021, 4, 8).atTime(LocalTime.MAX);
> {code}
> gets somehow rounded to 2021-4-9 00:00:00,000000 after persisting into the Oracle DB.
> The type of the column in Oracle is Timestamp(6).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)