[ 
https://issues.apache.org/jira/browse/TRINIDAD-1512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733903#action_12733903
 ] 

Yee-Wah Lee commented on TRINIDAD-1512:
---------------------------------------

Although this used to work in JDK 1.5, I'm not convinced this is a JDK issue. 
Since we are creating a custom timezone in getFormattingTimeZone(), and the JDK 
documentation states: "No daylight saving time transition schedule can be 
specified with a custom time zone ID."
http://java.sun.com/javase/6/docs/api/java/util/TimeZone.html#setID%28java.lang.String
 

We used to clone the TimeZone so it would have the DST transition rules, and 
the JDK 6 code now enforces that those rules aren't even looked at when 
creating the timezone's display name. 

Instead of using the DST transition rules, the DateTimeConverter can get the 
formattingTimeZone() with the value to be formatted included, so it instead 
does:     
  StringBuilder zoneId = new StringBuilder(9);
  int offset = zone.getOffset((Date) value); 

> ConvertDateTime uses static GMT+x string for timezone display, doesn't update 
> for daylight savings
> --------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1512
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1512
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions:  1.2.11-core
>            Reporter: Yee-Wah Lee
>            Priority: Minor
>
> 1. Create a jsp that uses tr:convertDateTime to display timezone, e.g. 
>         <af:outputText value="#{demoInput.date}">
>         <af:convertDateTime type="both" timeStyle="full" 
> timeZone="America/New_York"/>
>         </af:outputText>
> where demoInput.date returns the current date, e.g. June 17 09, 1:00 PM
> 2. Run the jsp. For June 17 09 the timezone is actually EDT (GMT - 4). 
> Instead it displays as EST
>     6/17/2009 1:00:00 PM GMT-05:00
> If using the JSF standard DateTimeConverter, the output is:
>    Jun 17, 2009 1:00:00 PM EDT

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to