-
-
Notifications
You must be signed in to change notification settings - Fork 129
Closed
Description
As promised here's a test that fails JObject roundtrip failing test. Just drop it into the GitHubIssues.cs
[Test]
public void issue_39()
{
var dateTime = DateTime.Parse("2016-09-03T10:30:20Z");
var obj = new JObject(new JProperty("timestamp", dateTime));
var table = R.Db(DbName).Table(TableName);
table.Delete().Run(conn);
var result = table.Insert(obj).RunResult(conn);
var id = result.GeneratedKeys[0];
var check = table.Get(id).RunAtom<JObject>(conn);
check.Dump();
var dt = (DateTime)check["timestamp"];
dt.Should().Be(dateTime);
}
There's the output of check.Dump()
:
{
"id": "e605a378-d8f9-4d0d-b910-e4707c0ce6b0",
"timestamp": {
"$reql_type$": "TIME",
"epoch_time": 1472898620,
"timezone": "+10:00"
}
}
Metadata
Metadata
Assignees
Labels
No labels