Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-915

Faces scaffold should use the server timezone instead of UTC for date and time fields

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.5.Final, 1.3.0.Final
    • Fix Version/s: 1.3.1.Final
    • Component/s: None
    • Labels:
      None
    • Workaround Description:
      Hide

      Specify the following context parameter in the web.xml of the generated scaffold:

      <context-param>
          <param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
          <param-value>true</param-value>
      </context-param>
      

      Show
      Specify the following context parameter in the web.xml of the generated scaffold: <context-param> <param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name> <param-value>true</param-value> </context-param>

      Description

      The generated Faces scaffold uses UTC to represent dates and times in all usages of h:outputText. This is the default behavior but is confusing and appears incorrect, since end-users would expect to see the dates and times from the perspective of the server timezone (which is used for storage).

      Also, the stored dates are displayed with an offset of one day when the server timezone is ahead of UTC.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vineet.reynolds Vineet Reynolds
                  Reporter:
                  vineet.reynolds Vineet Reynolds
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: