You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michal Borowiecki (JIRA)" <de...@myfaces.apache.org> on 2006/03/28 08:31:23 UTC

[jira] Commented: (MYFACES-656) data conversion problems???

    [ http://issues.apache.org/jira/browse/MYFACES-656?page=comments#action_12372064 ] 

Michal Borowiecki commented on MYFACES-656:
-------------------------------------------

Boris, if your TZ has daylight saving you can specify it by name in the timeZone attribute. 
Use TimeZone.getAvailableIDs() to list all TimeZone IDs and choose the right one.

I live in Poland and encountered the same problem.
The GMT+x notation does not support daylight saving.
The solution was to use timeZone="Poland" in my case. 
Daylight saving is now properly dealt with.

> data conversion problems???
> ---------------------------
>
>          Key: MYFACES-656
>          URL: http://issues.apache.org/jira/browse/MYFACES-656
>      Project: MyFaces Core
>         Type: Bug
>     Versions: 1.1.2
>  Environment: Windows XP, Mozilla, Resin 3.0.14
>     Reporter: Boris Kovalenko
>     Assignee: Martin Marinschek
>     Priority: Minor
>      Fix For: 1.1.2

>
> Simple form with
> <t:inputText id="rdate" value="#{currencyrate.rdate}" readonly="true" styleClass="input" size="10" >
>     <f:convertDateTime pattern="#{bundle['formats.date.ddmmyyyy']}"/>
> </t:inputText>
> rdate is type of Date and constructed with new Date(). Regardles of f:convertDateTime used the value in input field is always one day back if time part of date is 00:00:00. IMHO this is problem with TZ as my TZ is GMT+5. I can't suppose when the problems occured as I switched from one of the 200509 builds to the lates nightly (20051001)

-- 
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