Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 97678 invoked from network); 15 Mar 2010 14:21:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Mar 2010 14:21:36 -0000 Received: (qmail 78862 invoked by uid 500); 15 Mar 2010 14:20:49 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 78685 invoked by uid 500); 15 Mar 2010 14:20:48 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 78433 invoked by uid 99); 15 Mar 2010 14:20:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Mar 2010 14:20:48 +0000 X-ASF-Spam-Status: No, hits=-1013.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Mar 2010 14:20:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4C542234C48C for ; Mon, 15 Mar 2010 14:20:27 +0000 (UTC) Message-ID: <150622319.266081268662827311.JavaMail.jira@brutus.apache.org> Date: Mon, 15 Mar 2010 14:20:27 +0000 (UTC) From: "thanos vassilakis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-697) today.getYear() -> 110 not 2010 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 today.getYear() -> 110 not 2010 ------------------------------- Key: COUCHDB-697 URL: https://issues.apache.org/jira/browse/COUCHDB-697 Project: CouchDB Issue Type: Bug Components: JavaScript View Server Affects Versions: 0.10.1 Environment: windows NT, couch-0.11.0b905538 Reporter: thanos vassilakis Simple test: function(doc) { var today = new Date(); var month = new Date(today.getYear(), today.getMonth(),1); if (doc.date) { var date = new Date(doc.date); if (date > month && date < today) emit(today.getYear(), month); } } results in : 110 ID: 9eb7affe00e4b705afa4679fa70c5938 "0110-03-01T05:00:00.000Z" 110 ID: 9eb7affe00e4b705afa4679fa70c53ec "0110-03-01T05:00:00.000Z" 110 ID: 9eb7affe00e4b705afa4679fa70c4c93 "0110-03-01T05:00:00.000Z" 110 ID: 9eb7affe00e4b705afa4679fa70c3d13 "0110-03-01T05:00:00.000Z" 110 ID: 9eb7affe00e4b705afa4679fa70c333e "0110-03-01T05:00:00.000Z" Using Opera: javascript:var today= new Date(); today.getYear(); Results in: 2010 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.