question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ZonedDateTime field limits interoperability

See original GitHub issue

Currently 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:closed
  • Created 5 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
slinkydevelopercommented, Apr 28, 2020

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!

0reactions
dturanskicommented, Apr 10, 2020

@fabiojose - Any thoughts on merging the PR? @AceHack - Is there a specific issue you are dealing with?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found