Guy,

If you want to just display what is in the database then don't use the
convertDateTime tag.  The convertDateTime tag is used to convert the
Date into a desired format or time zone.

Scott

On Mon, 2008-06-02 at 15:44 -0600, Guy Bashan wrote:
> Thanks for your replay,
> That is exactly my problem, I don't want to use timeZone, and I don't want
> java to do any shifting on the time using a default timeZone.
> For example, I have a date in db: 1/1/2008 00:00.
> I want the date to be shown exactly like that, without any timeZone
> shifting.
> I do want that the date will be formatted according to the given locale.
> 
> Something like this:
> <f:convertDateTime locale="#{appBean.userLanguageLocale}" type="both"
> timeZone="NONE" />
> 
> Is it possible? Or will I have to use java code for that?
> 
> Thanks,
> Guy.
> 
> -----Original Message-----
> From: Christopher Cudennec [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2008 12:05 AM
> To: MyFaces Discussion
> Subject: Re: [Faces][Core]
> 
> Hi Guy,
> 
> did you have look at Sun's documentation? You can pass a time zone to
> the converter. See
> http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/f/convertDate
> Time.html
> for more information.
> 
> Cheers,
> 
> Christopher
> 
> Guy Bashan schrieb:
> > Hi,
> >
> >
> >
> > Is it possible not to make any time zone shifting in <f:convertDateTime>.
> >
> > For example:
> >
> > <h:outputText
> > value="#{cmp_summary.cmpCampaign.cmpDeliveryLimits.startDate}">
> >
> >             <f:convertDateTime locale="#{appBean.userLanguageLocale}"
> > type="both" />
> >
> > </h:outputText>
> >
> >
> >
> > I want to format the date according to the locale, but that no time
> shifting
> > will take place, since the exact value in db should be shown on screen.
> >
> >
> >
> > Thanks,
> >
> > Guy.
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 8.0.100 / Virus Database: 269.24.4/1478 - Release Date:
> 02.06.2008 07:12
> >
> 

Reply via email to