Uploaded image for project: 'UI Framework'
  1. UI Framework
  2. UIFR-219

UiUtils tooling for Time Zones Conversion Support

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: 3.20.0
    • Fix Version/s: 3.21.0
    • Labels:
      None

      Description

      1. Background

      It can be challenging to implement our time zones conventions in areas of the Reference Application that do not enforce a separated client-server pattern over REST, such as in Java/Groovy Server Pages that are widespread over the Reference Application.

      2. Description

      The idea is to control client-server time zones conversions through a centralised global property setting: "timezone.conversions" (for backward-compatibility.)
      When existing and set to a truthy value this indicates that the time zones conversions should be enforced.

      3. UiUtils workaround for GSPs server → client tz conversions

      In the widespread case of GSPs it is much easier to convert server datetimes with Groovy in the view. However this requires the view

      1. To know whether the "timezone.conversions" is set to a truthy value.
      2. To know what the client time zone to convert to.

      For the latter we decide to keep track of the client time zone through a user property named clientTimezone.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jfigueiredo Joel Figueiredo
                Reporter:
                mksd Dimitri R
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: