You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Neo4j Driver seems to return DateTime as lazy-ZonedDateTime which is not deserialized as DateTime.
Seems to happen only when using return as anonymous object not when returning types directly.
Works: Return.As<Model>("n")
DateTime properties are null Return(() => new { MyModel = Return.As<Model>("n")})
Usage:
Deserialization in Neo4jClient shows Json contains lazy-ZonedDateTime
Downgrading to the latest 4.x version fixes the issue.
Versions:
Neo4jClient >= 5
Bolt
.NET 6
5.2.0 Enterprise
The text was updated successfully, but these errors were encountered:
@awatertrevi The driver was changed removing lazy parsing of ZonedDateTimes, but instead it can return something such as: "{ UtcSeconds: 1000, Nanoseconds: 0, Zone: "Antartica/Troll" }" this is because in order to convert the ZonedDateTime to the local date & time values the driver needs to be able to look up the offset from UTC, but if the zone is unknown to the OS it will fail.
The reason the driver does not throw is because zones that might not be legal on one machine may be legal on the neo4j server.
If you have further details or recreation scenarios that don't match this case, please let me know.
Describe the bug
Neo4j Driver seems to return DateTime as lazy-ZonedDateTime which is not deserialized as DateTime.
Seems to happen only when using return as anonymous object not when returning types directly.
Works:
Return.As<Model>("n")
DateTime properties are null
Return(() => new { MyModel = Return.As<Model>("n")})
Usage:
Deserialization in Neo4jClient shows Json contains lazy-ZonedDateTime
Downgrading to the latest 4.x version fixes the issue.
Versions:
The text was updated successfully, but these errors were encountered: