Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1512

ConvertDateTime uses static GMT+x string for timezone display, doesn't update for daylight savings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.11-core
    • 1.2.12-core
    • Components
    • None

    Description

      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

      Attachments

        1. trin12_1512.diff
          6 kB
          Yee-Wah Lee
        2. branch12114_1512.diff
          6 kB
          Yee-Wah Lee

        Activity

          People

            Unassigned Unassigned
            yeelee Yee-Wah Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: