You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Beránek (JIRA)" <de...@myfaces.apache.org> on 2006/03/02 13:06:18 UTC
[jira] Commented: (MYFACES-1159) GMT is not good default timezone
in DateTimeConverter
[ http://issues.apache.org/jira/browse/MYFACES-1159?page=comments#action_12368477 ]
Martin Beránek commented on MYFACES-1159:
-----------------------------------------
but this converter isn't symetric, when i don't set correct timezone
> 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