-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateTime field in JObject Deserialization #99
Comments
Just a few questions:
Also, are you customizing the |
Hello, I am using C# driver version 2.3.9.0. RethinkDB for Windows version 2.3.4. I am not using customized serializer. |
|
Hey @alana1 , This must be due to something else... (like customizing the serializer) the following unit test passes in the C# driver currently:
Protocol Trace
So we are converting the time pseudo types correctly with |
@alana1 by any chance, are you using https://github.com/bchavez/RethinkDb.Driver/wiki/GOTCHA!#reql_type-all-up-in-my-jobject 🚏 🚌 _"Fe, Fi, Fo, Fum... Well, I'll be darn here it comes... The Double Dutch Bus is on the street"_ |
I am using RunChanges(conn). Is that okay? |
Ahhhh. Okay, that makes sense now. Yeah, that would be a bug in the driver.
Haha, okay, I'll work on getting a fix for you soon. ⌚ 🌆 _"I just can't wait... I just can't wait... for saturday night..."_ |
Thank you and much appreciated. |
Hey @alana1 , as a temporary workaround, instead of using I'm going to need a little more time to think about how to resolve this issue effectively in C#; it's turning out to be a more tricky problem with the type system than I originally thought. |
Hello @bchavez, your suggestion worked. Thank you for your help on this. |
Hey @alana1 so I gave this a lot of thought. I really tried every trick in my book to think this one through for a clean performant implementation.... I decided that we're not going to support
So, I think the best we can do is document this behavior in the GOTCHA! and recommend that developers use |
Hello,
I have a changefeed and returns JObject. In the JObject contains the DateTime field. However, the JObject returns the epoch time. When deserializing JObject to strongly type object, any properties with DateTime epoch time is not converted to the original datetime utc format we are expecting. How can I deserialize the jobject and return correct datetime. A sample of the json is below.
The text was updated successfully, but these errors were encountered: