incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Change in date handling from 1.0.x to 1.2
Date Tue, 18 Sep 2012 01:18:17 GMT
I agree with Bob. This is a difference in your Spidermonkey library.

On Mon, Sep 17, 2012 at 5:47 PM, Robert Newson <rnewson@apache.org> wrote:
> I think it's to do with the version of Spidermonkey you've used,
> rather than CouchDB version.
>
> B.
>
> On 17 September 2012 23:35, Cory Zue <czue@dimagi.com> wrote:
>> Hi,
>>
>> We're in the process of migrating our app from couch 1.0 to 1.2.
>> Seeing different behavior in this view function though, which is
>> giving us some trouble.
>>
>> https://github.com/dimagi/core-hq/blob/master/corehq/couchapps/formtrends/views/form_time_by_user/map.js
>>
>> It looks like it works as designed in 1.0 but in 1.2
>> submit_time.getDay() and submit_time.getHours() both return null.
>>
>> Is there a better way to handle this now?
>>
>> Our dates are formatted like this: 2011-03-07T20:27:12Z
>>
>> Cory

Mime
View raw message