myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Myfaces Wiki] Update of "FAQ" by SimonKitching
Date Wed, 30 Nov 2005 20:32:20 GMT
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:

The comment on the change is:
Add info about timezones and date conversion

+ === Why are my dates displaying the wrong day/time? ===
+ The Sun JSF spec requires that date->string converters default to using the standard
UTC (aka GMT) timezone.
+ Note that !MyFaces releases 1.1.0 and earlier did not comply with the JSF spec; they defaulted
to using the
+ timezone of the server.
+ You can control the timezone used by the conversion by attaching an explicit converter:
+   <f:convertDateTime timeZone="#{bean.timeZone}"  .../>
+ 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.
  === How can I access one Managed Bean from another? ===
  [#Bean permlink]

View raw message