couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <>
Subject Re: Time processing difference between 0.11.0b898401 and 0.11.0b903617
Date Wed, 27 Jan 2010 23:52:12 GMT
On Wed, Jan 27, 2010 at 12:41 PM, David Coallier
<> wrote:
>> Can you try with r902422?

I just tested with my copy of trunk and this temp view:

function(doc) {
  var d = new Date("2010/02/04");
  emit(d, null);

I only have one doc, in there, so my rows are

"2010-02-04T08:00:00.000Z", null

Which to me looks like what I was expecting.

That doesn't explain your {} though. Maybe it is the result of parsing
an invalidate date format? you can use log() in your functions to
output to the couch.log (at info level)

Maybe you have an undefined that used to be silently ignored but now
is trying to serialize and coming out with {}?


>> If this is a consequence of the json2.js change, we'll have to fix it.
> I believe this is a consequence of json2.js as well (At least that's
> the only difference that deals with time related matter that I could
> identify).
> In fact how I fixed my code for now since this is a prod server is:
> I'll try with 902422 and let you know.
> --
> Slan,
> David

Chris Anderson

View raw message