This is my solution: 
Component:

  | 
  | @Name("defaultTimeZone")
  | @Scope(ScopeType.APPLICATION)
  | @Intercept(NEVER)
  | public class DefaultTimeZone {
  |     /**
  |      * @return default TimeZone
  |      */
  |     @Unwrap
  |     public TimeZone getDefaultTimeZone() {
  |         return TimeZone.getDefault();
  |     }
  | }
  | 


Page:


  | <h:outputText value="#{myObj.date}">
  | <f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" 
timeZone="#{defaultTimeZone}" />
  | </h:outputText>

It is easy to change for example to userTimeZone where timeZone is extracted 
from database or something like this


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977198#3977198

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977198
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to