[ http://issues.apache.org/jira/browse/MYFACES-1159?page=all ]
Volker Weber closed MYFACES-1159:
---------------------------------
Resolution: Invalid
GMT as default timezone for DateTimeConverter is required by spec
see MYFACES-506
> GMT is not good default timezone in DateTimeConverter
> -----------------------------------------------------
>
> Key: MYFACES-1159
> URL: http://issues.apache.org/jira/browse/MYFACES-1159
> Project: MyFaces Core
> Type: Bug
> Versions: 1.1.1
> Environment: Apache Tomcat 5.5.15, MyFaces 1.1.1, Hybernate 3
> Reporter: Martin Beránek
>
> There is a problem with default time zone in DateTimeConverter.
> I want to display date (loaded from db through hibernate), for example:
> 1970-09-02/00:00:00 (java.util.Date). So dateTimeConverter decrease date by
> 1 hour and then display 1970-09-01/23:00:00. This is because after init the
> DateFormat contains time zone default for my host. The only workaround is
> manualy set local timezone in <f:convertDateTime timeZone="..." />. I thing,
> that the best solution is not set format.setTimeZone(tz) when user doesn't
> specify other timezone, or set localtimezone ( TimeZone.getDefault() ).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira