|
Prev: form based login in jboss using login-config not working
Next: Porting single servlet example to NetBeans 6.1
From: Venkat Sadasivam on 20 Jul 2008 13:00 By default JSF converts all the date and time into GMT timezone, it doesn't have any provision to change the default timezone for your application. Here is a solution I came across. http://venkatsadasivam.wordpress.com/2008/07/08/jsf-default-timezone-and-date-pattern/ Hope you all will get benefit out of this solution.
From: Lew on 20 Jul 2008 13:51 Venkat Sadasivam wrote: > By default JSF converts all the date and time into GMT timezone, it Actually, not true - the 'timeZone' attribute to the JSF <f:convertDateTime> tag can take care of this. <http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/tlddocs/index.html> Please do not multi-post, especially not advertisements. -- Lew
From: Venkat Sadasivam on 21 Jul 2008 23:34
On Jul 20, 10:51 pm, Lew <com.lewscanon(a)lew> wrote: > Venkat Sadasivam wrote: > > By default JSF converts all the date and time into GMT timezone, it > > Actually, not true - the 'timeZone' attribute to the JSF <f:convertDateTime> > tag can take care of this. > <http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/tlddocs/index...> > > Please do not multi-post, especially not advertisements. > > -- > Lew If you use <f:convertDateTime> converter, throughout your application you have to include timezone attribute. In my post I shown a way to extend the default converter and apply through the application without much changes in your code. Excuse me if I did multi-post by mistake. |