Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D46A10CA3 for ; Wed, 29 Jan 2014 22:45:34 +0000 (UTC) Received: (qmail 33908 invoked by uid 500); 29 Jan 2014 22:45:32 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 33820 invoked by uid 500); 29 Jan 2014 22:45:32 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 33812 invoked by uid 99); 29 Jan 2014 22:45:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 22:45:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jens@couchbase.com designates 206.225.164.29 as permitted sender) Received: from [206.225.164.29] (HELO EXHUB020-2.exch020.serverdata.net) (206.225.164.29) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 22:45:28 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.179]) by EXHUB020-2.exch020.serverdata.net ([206.225.164.29]) with mapi; Wed, 29 Jan 2014 14:45:07 -0800 From: Jens Alfke To: "user@couchdb.apache.org" Date: Wed, 29 Jan 2014 14:45:06 -0800 Subject: Re: confused about date parsing Thread-Topic: confused about date parsing Thread-Index: Ac8dQ8Gaat84XueyRXunRCCyXMKQyg== Message-ID: References: <2A7B6206-FEA0-4D1F-B107-A3BF563839B8@me.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On Jan 29, 2014, at 2:17 PM, Alexander Shorin wrote: > On Thu, Jan 30, 2014 at 2:13 AM, Dan Santner wrote: >> var today =3D new Date(); >=20 > This value will be computed only once when document get indexed, not > each time when you query the view.=20 Has anyone thought of modifying the JS global bindings when a map function = runs, such that calling Date.new will throw an exception? Preferably an exc= eption with a descriptive message like "It is illegal to use the current da= te in a map function"? It would save considerable support time =97 I believ= e this is the second time this issue has come up in the last week. (Yes, probably more appropriate on the dev list=85) =97Jens