Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 61853 invoked from network); 6 Mar 2007 00:00:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2007 00:00:25 -0000 Received: (qmail 34241 invoked by uid 500); 6 Mar 2007 00:00:30 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 34029 invoked by uid 500); 6 Mar 2007 00:00:29 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 34018 invoked by uid 99); 6 Mar 2007 00:00:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 16:00:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [203.109.151.109] (HELO email.rhe.co.nz) (203.109.151.109) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 16:00:19 -0800 Received: from [192.168.50.47] ([203.109.151.126]) by email.rhe.co.nz (Lotus Domino Release 7.0.2) with ESMTP id 2007030612595184-44547 ; Tue, 6 Mar 2007 12:59:51 +1300 Message-ID: <45ECAEF0.4080603@rhe.co.nz> Date: Tue, 06 Mar 2007 12:59:44 +1300 From: Simon Kitching User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: date in jenia calendar is off by one References: <9323327.post@talk.nabble.com> In-Reply-To: <9323327.post@talk.nabble.com> X-MIMETrack: Itemize by SMTP Server on RHEDomino2/RHE(Release 7.0.2|September 26, 2006) at 06/03/2007 12:59:51 p.m., Serialize by Router on RHEDomino2/RHE(Release 7.0.2|September 26, 2006) at 06/03/2007 01:00:14 p.m., Serialize complete at 06/03/2007 01:00:14 p.m. Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org raindogs wrote: > I'm attempting to implement the jenia calendar and, while it all seemed great > at first, I now realize that I'm getting an off-by-one error on the day. In > the test I just ran, I selected March 15th as the date. The input box > displayed "03/15/2007", but the value that actually gets passed into the > backing bean is "Wed Mar 14 19:00:00 CDT 2007". > > I'm really scratching my head on this one, as I haven't heard of anyone else > having this problem. All of the relevant info is below, any help would be > much appreciated. The default JSF date converter always uses UTC. Note that this is required by the JSF spec (and earlier versions of MyFaces were not compliant). March 15 00:00 UTC --> Mar 14 19:00 CDT If you don't want UTC (and I bet you do not) then try attaching an appropriate converter that uses the local timezone; I believe there is one in either Tomahawk or the tomahawk sandbox.. Regards, Simon