ZonedDateTime field limits interoperability
See original GitHub issueCurrently the time
field is a ZonedDateTime
. This requires a custom deserializer ZonedDateTimeDeserializer
implemented with jackson. Sending a CloudEvent via http then causes problems on the receiving end. IMHO It would be better to represent time with a more portable type, e.g., long.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Java Time API converting ISO 8601 to ZonedDateTime
The system stores all it's Date and Time information internal in UTC times. When a user requests a Date or Time it is...
Read more >ZonedDateTime (Java Platform SE 8 ) - Oracle Help Center
This class stores all date and time fields, to a precision of nanoseconds ... Instead, the local date-time is adjusted to be later...
Read more >Java8 Tutorials - Legacy Date-Time Code | Docs4dev
Interoperability with Legacy Code ... The following example converts a Calendar instance to a ZonedDateTime instance. ... Although the java.time.format.
Read more >AssertJ - fluent assertions java library - GitHub Pages
A DB module to provide assertions for relational database types (Table, Row, Column…). A Swing module provides a simple and intuitive API for...
Read more >Hibernate ORM 6.1.6.Final User Guide - Red Hat on GitHub
The Jakarta Persistence specification strictly limits the Java types that can ... ZonedDateTime is mapped to the TIMESTAMP or TIMESTAMP_WITH_TIMEZONE JDBC ...
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 Free
Top 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
Hi @dturanski, I think i’m going to mark this issue as invalid since in sdk v2 we don’t use anymore jackson annotations and the implementation of json ser/de is hugely simplified thanks to the
Message
api. You can easily implement a json serializer/deserializer for GSON similar to what is done for https://github.com/cloudevents/sdk-java/tree/master/formats/json-jackson. We’re also happy to accept a contribution for a json format using GSON!@fabiojose - Any thoughts on merging the PR? @AceHack - Is there a specific issue you are dealing with?