You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2005/12/01 05:38:23 UTC

[Myfaces Wiki] Update of "FAQ" by SimonKitching

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by SimonKitching:
http://wiki.apache.org/myfaces/FAQ

The comment on the change is:
tweaks to f:convertDateTime info

------------------------------------------------------------------------------
  timezone of the server.
  
  You can control the timezone used by the conversion by attaching an explicit converter:
+ {{{
+     <f:convertDateTime timeZone="Antarctica/South_Pole"  .../>
+ }}}
+ or
+ {{{
-   <f:convertDateTime timeZone="#{bean.timeZone}"  .../>
+     <f:convertDateTime timeZone="#{bean.timeZone}"  .../>
+ }}}
+ where #{bean.timeZone} returns either a string id, or a !TimeZone instance.
  
  Alternatively you register your own converter to override the standard converter, causing your custom code
  to be applied by default to all date->string conversions.