From user-return-18686-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Nov 3 10:57:44 2011 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 AF1D77712 for ; Thu, 3 Nov 2011 10:57:44 +0000 (UTC) Received: (qmail 67089 invoked by uid 500); 3 Nov 2011 10:57:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 67042 invoked by uid 500); 3 Nov 2011 10:57:43 -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 67033 invoked by uid 99); 3 Nov 2011 10:57:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 10:57:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jc.devilla@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 10:57:38 +0000 Received: by wwf10 with SMTP id 10so1463974wwf.23 for ; Thu, 03 Nov 2011 03:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rO0oDlal69mP8q4vVGHtiUVhfTB1SfdeZOFoM18jp44=; b=W975q5+ZVCsNqAIBQYZ/cpdFiG+BEIXFiNwPkvdxAZAx8AUjL5Ws7PMuFPzr7PBZoR vWmwQyRdK/TIA6KJ+b4+ZreI974QvoQYPKKdmAWRlUnGVYp93PYMlOmfoPrYCa4NqV0Y KlWeLdxPLphsTlY4uy8rEGQdcnJJD+iKlRHhE= MIME-Version: 1.0 Received: by 10.216.137.102 with SMTP id x80mr7321380wei.109.1320317836642; Thu, 03 Nov 2011 03:57:16 -0700 (PDT) Received: by 10.216.134.197 with HTTP; Thu, 3 Nov 2011 03:57:16 -0700 (PDT) In-Reply-To: <19D11DFF-964F-46FF-B35F-C722C42CFFDD@apache.org> References: <19D11DFF-964F-46FF-B35F-C722C42CFFDD@apache.org> Date: Thu, 3 Nov 2011 18:57:16 +0800 Message-ID: Subject: Re: Date discrepancy on Futon status page. From: JC de Villa To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016e6d7e060a4c8c104b0d2737c --0016e6d7e060a4c8c104b0d2737c Content-Type: text/plain; charset=ISO-8859-1 Thanks Jan, I put in the fix as you suggested and the date shows up correctly now. Should I still file a bug for it in JIRA? One last quick question... do you ever sleep? I see you on the list at all hours :). Thanks again, and thanks for the all the great work you guys have put into this database! -- JC de Villa On Thu, Nov 3, 2011 at 6:38 PM, Jan Lehnardt wrote: > Hi JC, > > the best place to report errors lie this is our bug tracking system: > > https://issues.apache.org/jira/browse/COUCHDB > > It ensures we don't forget about this report. Emails sometimes get lost > in the mists of time :) > > As for the particular issue. It looks like share/www/status.html is at > fault: > > Line 59: > > var year = d.getFullYear(), month = d.getMonth(), day = d.getDate(); > > Date().getMonth() is zero-based, i.e. January is 0, February is 1 etc. > (Thanks > to Java's Date() and ECMA's reluctance to fix this :) > > Changing the line to this should do the trick: > > var year = d.getFullYear(), month = d.getMonth() + 1, day = d.getDate(); > > If you could confirm this, I'm happy to commit the fix. > Cheers > Jan > -- > > > > On Nov 3, 2011, at 10:39 , JC de Villa wrote: > > > Hi guys, > > > > I just noticed something odd with my most recently complied couch. It's > > based off of commit 74613f5c413a3d10bec024bcac8fe9e7be10ac74. > > > > Anywho, I fired off a couple of continuous pull replications last night. > > No problems there, and everything is peachy. This afternoon, I looked at > > the status page and it's updating just fine, no hiccups at all. Then I > > noticed that the "Started on" and "Last updated on" column have the right > > time, but the date is off by one month. The dates all show "2011-10-2" > for > > the Start column and "2011-10-3" on the last updated column. > > > > I first thought that it might have been the system date/time set > > incorrectly getting reflected on it, but the system date/time is correct, > > and the logs also show the correct date. > > > > Nothing special done with compiling it... I used libmozjs185-dev from the > > ubuntu natty repositories, and couchdb was configured with --prefix=/opt. > > Config files are symlinked to /etc as I've always done. > > > > Anyway, here's a snip of a screenshot of the server time and the status > > page: > > > > http://dl.dropbox.com/u/6654126/snapshot4.png > > > > Any ideas? > > > > -- > > JC de Villa > > --0016e6d7e060a4c8c104b0d2737c--