myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ayub Khan" <ayub...@gmail.com>
Subject Re: t:calendar is giving me dates off by 1 day
Date Thu, 04 Dec 2008 16:35:13 GMT
use this way.


<h:outputText id="dateHeaderId" value="Date:">

<f:convertDateTime dateStyle="short" />

</h:outputText>



On 12/4/08, laredotornado <laredotornado@gmail.com> wrote:
>
>
> Thanks.  Any idea what the string expression for US Mountain Time would be
> (e.g. Denver, CO)?
>
> - Dave
>
>
> Christian Poecher wrote:
> >
> >
> >
> > laredotornado wrote:
> >>
> >> but if I type a value like "10-10-2008" into my search box, what is
> >> actually logged is
> >>
> >> DEBUG 2008-12-04 09:04:17,270 -
> >> [com.myco.nps_history.beans.SearchBean::setFromDate] - setting from
> date:
> >> Thu Oct 09 18:00:00 MDT 2008
> >>
> >> What can I do to prevent this off-by-one error?
> >>
> >
> > Hi Dave,
> >
> > I'd say you are not off a day, but off 6 hours. Is MDT = GMT-6? Maybe
> your
> > Timezone is not set properly. Try reading
> > http://wiki.apache.org/myfaces/FAQ#Date and
> >
> http://venkatsadasivam.wordpress.com/2008/07/08/jsf-default-timezone-and-date-pattern/
> >
> > Cheers,
> > Chris
> >
>
> --
> View this message in context:
> http://www.nabble.com/t%3Acalendar-is-giving-me-dates-off-by-1-day-tp20836530p20836996.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
-- "Two roads diverged in a wood
And I took the one less traveled by
And that has made all the difference.

Robert Frost....."

Mime
View raw message