[ http://issues.apache.org/jira/browse/MYFACES-1159?page=comments#action_12368483 ]
Volker Weber commented on MYFACES-1159: --------------------------------------- For my experience the converter is semetric since fix of MYFACES-506. But i didn't test it lately. Are you sure the asymetric is in the converter? If so i can reopen and change the title. Please provide a small examle to demonstrate the asymetric behavior. Regards, Volker > 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
