Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 74972 invoked from network); 13 Jun 2007 16:49:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 16:49:28 -0000 Received: (qmail 92258 invoked by uid 500); 13 Jun 2007 16:49:26 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 92216 invoked by uid 500); 13 Jun 2007 16:49:26 -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 92205 invoked by uid 99); 13 Jun 2007 16:49:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 09:49:26 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of awiner@gmail.com designates 209.85.146.181 as permitted sender) Received: from [209.85.146.181] (HELO wa-out-1112.google.com) (209.85.146.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 09:49:21 -0700 Received: by wa-out-1112.google.com with SMTP id l24so323766waf for ; Wed, 13 Jun 2007 09:49:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BHZA3twVwh5Y38EdudpYgRadBa3nkH8eAXeTq5zuGifPJfVhy7Mm1U9LSbssroDMHdWxcjAAm2XfLF2XR65uZv527ZagN3828fco2mPCE206RJxl5uTKCkA7iwefC4tXk/6H+Mvma7br6vbBrBGYmqGGlIxE8IlXmtgTztOfcsQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jzoqJzAHDPcuUjpBtWvZD/pmTpM7EdnyZGWsAlUr7fEaTvXTepyMumx4WZ1pageWeomuDzpf0Df8GeATAmpfx4JOlsfpFVETROEL2BjlcJHYFrgcSW+oJEbVn5n7xVw7Y7VFGMfgG+Lj0GNacYo12pw+z2CDcbDEi/rMMvfjb+s= Received: by 10.114.12.9 with SMTP id 9mr852531wal.1181753339494; Wed, 13 Jun 2007 09:48:59 -0700 (PDT) Received: by 10.115.18.12 with HTTP; Wed, 13 Jun 2007 09:48:59 -0700 (PDT) Message-ID: <6dac79b90706130948u249ed624vcc145966609c8b5e@mail.gmail.com> Date: Wed, 13 Jun 2007 09:48:59 -0700 From: "Adam Winer" To: "MyFaces Discussion" Subject: Re: and hour/minute oddity In-Reply-To: <46701382.8020501@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_31652_20082273.1181753339472" References: <466F0E0D.8070609@gmail.com> <6dac79b90706121441g5cdc83ddidbf535d0fee6825b@mail.gmail.com> <46701382.8020501@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_31652_20082273.1181753339472 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline The issue here (I'm guessing) is that the field is goingin and out of daylight savings time, and some bit of code isn't accounting for that. That's why when you pick a date back in January, you get a bump in time - because January is really one hour different from June. -- Adam On 6/13/07, Chris Hane wrote: > > > > Adam Winer wrote: > > On 6/12/07, Chris Hane wrote: > >> When I select add an tag with a converter that displays > >> the > >> hours/minutes also, the hours are not correct. For example, in the > demo > >> inputDate.jspx, change the last inputDate to be: > >> > >> > >> >> pattern="yyyy/M/d hh:mm" /> > >> > >> > >> > >> I added the "hh:mm" to the converter. When you select a day in the > >> current > >> month, the time will default to the current time. Select another day > in > >> the current month and the time stays the same. > >> > >> Select a day in the past (say January) and the time increases by 1 > hour. > >> Select another day in January and the time increases again by 1 hour. > >> > >> Is this a known issue? Are there any workarounds? > >> > >> Is there something else I should be looking at for this issue? > >> > >> I'm running everything on my development box: > >> Windows XP > >> Jboss 4.0.x > >> Firefox 2.x > >> Java 1.5.x > >> MyFaces 1.latest > >> Facelets 1.11 > >> > >> My local machine timezone is EST. > > > > Actually, I suspect your timezone is EDT, and that this > > is a daylight savings time issue. > > > > -- Adam > > > > Adam - thanks for the response. You were right, it was EDT. > > The whole date thing has me a little perplexed. > > I setup the following: > - computer time (GMT - made sure DST was off) > - added GMT to inputDate > > Voila, no time change. My next step is to setup the server/pages this way > and test on a client that is not GMT. Will the time be changed since the > client has a different timezone? > > I've done a little google searching; but feel I'm missing the keywords I > should be looking for. Suggestions on what I can read to understand > dates/timezone better and how they impact the various JSF/java components? > > Thanks, > Chris.... > ------=_Part_31652_20082273.1181753339472 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The issue here (I'm guessing) is that the field is going
in and out of daylight savings time, and some bit
of code isn't accounting for that.  That's why when
you pick a date back in January, you get a bump
in time - because January is really one hour different
from June.

-- Adam


On 6/13/07, Chris Hane <chrishane@gmail.com> wrote:


Adam Winer wrote:
> On 6/12/07, Chris Hane <chrishane@gmail.com> wrote:
>> When I select add an <tr:inputDate> tag with a converter that displays
>> the
>> hours/minutes also, the hours are not correct.  For example, in the demo
>> inputDate.jspx, change the last inputDate to be:
>>
>>     <tr:inputDate id="mdf5" value="2004/09/06" label="attached
>> converter">
>>        <tr:convertDateTime secondaryPattern="d/M/yyyy hh:mm"
>>                            pattern="yyyy/M/d hh:mm" />
>>     </tr:inputDate>
>>
>>
>> I added the "hh:mm" to the converter.  When you select a day in the
>> current
>> month, the time will default to the current time.  Select another day in
>> the current month and the time stays the same.
>>
>> Select a day in the past (say January) and the time increases by 1 hour.
>> Select another day in January and the time increases again by 1 hour.
>>
>> Is this a known issue?  Are there any workarounds?
>>
>> Is there something else I should be looking at for this issue?
>>
>> I'm running everything on my development box:
>> Windows XP
>> Jboss 4.0.x
>> Firefox 2.x
>> Java 1.5.x
>> MyFaces 1.latest
>> Facelets 1.11
>>
>> My local machine timezone is EST.
>
> Actually, I suspect your timezone is EDT, and that this
> is a daylight savings time issue.
>
> -- Adam
>

Adam - thanks for the response.  You were right, it was EDT.

The whole date thing has me a little perplexed.

I setup the following:
   - computer time (GMT - made sure DST was off)
   - added GMT to inputDate

Voila, no time change.  My next step is to setup the server/pages this way
and test on a client that is not GMT.  Will the time be changed since the
client has a different timezone?

I've done a little google searching; but feel I'm missing the keywords I
should be looking for.  Suggestions on what I can read to understand
dates/timezone better and how they impact the various JSF/java components?

Thanks,
Chris....

 
------=_Part_31652_20082273.1181753339472--