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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.3.1.Final
    • 1.0.5.Final, 1.3.0.Final
    • None
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            People

              vineet.reynolds_jira Vineet Reynolds (Inactive)
              vineet.reynolds_jira Vineet Reynolds (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: