Skip to content

Commit 48265b8

Browse files
committed
Fix serialization of datetimes
- fix type and value serialization - fix tz name serialization
1 parent 60af40a commit 48265b8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testkit-backend/2cypher.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,13 @@ func nativeToCypher(v interface{}) map[string]interface{} {
5353
"utc_offset_s": offset,
5454
}
5555
if tzName != "Offset" {
56-
values["timezone_id"] = tzName
56+
values["timezone_id"] = x.Location().String()
5757
}
58-
return valueResponse("CypherList", values)
58+
return map[string]interface{}{
59+
"name": "CypherDateTime",
60+
"data": values,
61+
}
62+
5963
case []interface{}:
6064
values := make([]interface{}, len(x))
6165
for i, y := range x {

0 commit comments

Comments
 (0)