You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Karl Grosse (Jira)" <ji...@apache.org> on 2021/04/08 09:42:00 UTC
[jira] [Created] (OPENJPA-2863) java.time.LocalDateTime at
LocalTime.MAX in Oracle gets rounded to the next day atStartOfDay
Karl Grosse created OPENJPA-2863:
------------------------------------
Summary: 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
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)