Description
Hetmoteus opened DATAJPA-1242 and commented
I am using spring-boot 1.5.x with @EnableJpaAuditing
My entity has the following attribute :
@CreatedDate
protected ZonedDateTime createdAt;
It was working fine in spring-data 1.12.6.RELEASE converting from Calendar to ZonedDateTime.
Then I tried to switch to spring-boot 2 M7 which is using spring-data 2.0.2 and now I got the following error :
java.lang.IllegalArgumentException: Invalid date type for member ...
Seems like there is no converter between LocalDateTime and ZonedDateTime available.
Found a similar issue on spring-boot github:
spring-projects/spring-boot#10743
Affects: 2.0.2 (Kay SR2)
Reference URL: spring-projects/spring-boot#10743
Issue Links:
-
DATACMNS-639 Jsr310 support should include TimeZoned types
-
DATACMNS-834 Jsr310Converters does not support ZonedDateTime
-
DATACMNS-698 Add converter for OffsetDateTime and OffsetTime to JSR310 Converters
-
DATAREST-1355 LastModified header calculation does not support ZonedDateTime properties
-
DATACMNS-1243 Add converters Instant <-> LocalDateTime