-
Notifications
You must be signed in to change notification settings - Fork 108
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
sequences return raw time format instead of native #14
Comments
chrisvariety
changed the title
indexed getAll returns raw time format instead of native
sequences return raw time format instead of native
Apr 20, 2014
This seems to fix it: diff --git a/node_modules/rethinkdbdash-unstable/lib/protobuf.js b/node_modules/rethinkdbdash-unstable/lib/protobuf.js
index e40f1d6..08d1d13 100644
--- a/node_modules/rethinkdbdash-unstable/lib/protobuf.js
+++ b/node_modules/rethinkdbdash-unstable/lib/protobuf.js
@@ -93,7 +93,7 @@ pb.makeSequence = function(response, options) {
for(var i=0; i<response.response.length; i++) {
result.push(pb.makeDatum(response.response[i], options));
}
- return result;
+ return pb.convertPseudoType(result, options);
} |
Looks like you arrived at the same conclusion... except better... thanks so much @neumino you are ridiculously responsive. |
neumino
added a commit
that referenced
this issue
Apr 20, 2014
Sorry for the bug @chrisvariety. @chrisvariety -- I just pushed 1.12.5 with the fix for dates. |
@neumino Thanks again !! Working super great now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Spent my afternoon tracking down this weird bug...
Result is:
Notice the time format is raw, even though I am specifying native. Leaving
timeFormat
unspecified (e.g. just.run()
) should default tonative
, but still returns a raw time.This seems to happen anytime I get a sequence back. I believe we're just missing a call to
pb.convertPseudoType
somewhere in here: https://github.com/neumino/rethinkdbdash/blob/master/lib/protobuf.js#L90-L97Node v0.11.10
rethinkdbdash v1.12.4
The text was updated successfully, but these errors were encountered: