Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-778

Using the UP with client timezone information to format dates on server side.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Must
    • Resolution: Fixed
    • HTML Form Entry 4.0.1
    • HTML Form Entry 4.1.0
    • None

    Description

      The main topic of this issue, is the UserProperty that can save the client timezone, with that information we can format dates on the server-side.

      Add UserProperty to save the client timezone information.
      Add GlobalProperty that save Datetime Format (same as uiFramework)
      Add velocity function to convert to client timezone base on the UserProperty.
      If timezones GP is not set to true, it is possible to use <encounterDate> without any conversions, like it was before.
      Formatting the dates of <encounterDate> when the GP is true, are now on done on HFE (instead of HFE-UI) because we know the user timezone that is saved on the UP .
      Add a new method to TimeZoneUtil.java , to convert to client timezone using the UP (CLIENT_TIMEZONE) with timezone information.
      Update some tests to our new changes :

      • DateWidgetTest.java
      • TimeWidgetTest.java
      • ZonedDateTimeWidgetTest.java

      Update the default value of the timezones GP to false.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                jfigueiredo Joel Figueiredo
                mksd Dimitri R
                Daniel Kayiwa Daniel Kayiwa
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: