rsmgclient icon indicating copy to clipboard operation
rsmgclient copied to clipboard

Values created with datetime() panics with "wrong value marker" (support for ZonedDateTime missing?)

Open magnusart opened this issue 1 year ago • 2 comments

When I use the datetime() function in a Cypher Create query I see the value below in Memgraph lab.

{
   "year": 2024,
   "month": 11,
   "day": 23,
   "hour": 22,
   "minute": 40,
   "second": 32,
   "nanosecond": 960870000,
   "timeZoneOffsetSeconds": 0,
   "timeZoneId": "Etc/UTC"
}

But when I try with rsmgclient I get the error "wrong value marker" from the client. I previously used localdatetime() function and that worked fine. But it is missing the timezone.

Could this be because support for ZonedDateTime is missing from the client? https://github.com/memgraph/rsmgclient/blob/f022789764dacaa38f82cf3b3a86d9eedc0ad5f1/src/value/mod.rs#L127

It was released before summer as far as I can see https://memgraph.com/docs/release-notes#memgraph-v2170---may-22-2024

magnusart avatar Nov 23 '24 23:11 magnusart

Hi, @magnusart, thanks for reporting this 🙇‍♂️ . Yeah, the client didn't catch up with the changes in Memgraph.

Keep tracking the issue until we update this.

Is this a big blocker for you currently?

antejavor avatar Nov 25 '24 12:11 antejavor

This is a big blocker on my end, can confirm I am dealing with it on all nodes with attached dates.

DiscordJim avatar Dec 08 '24 22:12 DiscordJim