Support for JSR-310 (Date and Time)
See original GitHub issueAre there plans to support JSR-310 (java.time.LocalDate
, java.time.LocalDateTime
, java.time.LocalTime
, etc)?
Currently (version 1.5.0), needs to register converters. For example:
mapperFactory.getConverterFactory()
.registerConverter(new PassThroughConverter(LocalDate.class));
I will be happy, if it conversion becomes built-in.
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
How do I enable the JSR310 support for LocalDate using ...
... Java 8 date/time type java.time.LocalDate not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" ...
Read more >How to Handle Java 8 Dates and Time with Jackson in Spring ...
However, it still can be tricky with certain frameworks when using new features like the Date and Time API (known as JSR-310).
Read more >JSR 310 Part 3 : Java 8 Date and Time API - amitph
The Date and Time support is a very important part of any programming language and having a stronger Date and Time support makes...
Read more >Correctly handle JSR-310 (java 8) dates with Jackson
One of the most awesome features in Java 8 is the Date and Time API, also known as JSR-310. By default, Jackson will...
Read more >Usage of Java date and time types in HTDS - IBM
You can find the XML adapter classes in the <installDir> /executionserver/lib/jaxb-jsr310-support-1.1.3-IBM.jar file. You do not need to deploy this jar file in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
chanjarster On top of
TemporalAccessor
you also need at leastTemporalAmount
and possiblyTemporalUnit
. Registering a pass-through converter for those 3 interfaces covers all of the use cases I’ve run into.For sure this is an interesting one 😃
Just for start a discussion, this is a list of the types relatives to this specification I found, I’m not sure the list is complete, but maybe someone can help 😃
Instant
Duration
LocalDate
LocalTime
LocalDateTime
ZonedDateTime
DayOfWeek
Month
MonthDay
OffsetDateTime
OffsetTime
Period
Year
YearMonth
ZonedDateTime
ZoneOffset