Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1244

Allow date widgets to use UTC mode

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.34, 3.0.2
    • Component/s: Widgets
    • Release Notes Summary:
      The nuxeo-date widgets can be used in UTC mode to avoid timezone constraints.
    • Release Notes Description:
      Hide
      • UTC mode can now be enabled at the application level, by setting the Nuxeo.UI.config.timezone Web UI config property to Etc/UTC.
      • UTC mode can be enabled at the element level for nuxeo-date-picker and nuxeo-date by setting the timezone property to Etc/UTC.
      • The following methods of nuxeo-format-behavior accept timezone as a parameter:
        • formatDate
        • formatDateTime
      Show
      UTC mode can now be enabled at the application level, by setting the Nuxeo.UI.config.timezone Web UI config property to Etc/UTC . UTC mode can be enabled at the element level for nuxeo-date-picker and nuxeo-date by setting the timezone property to Etc/UTC . The following methods of nuxeo-format-behavior accept timezone as a parameter: formatDate formatDateTime
    • Tags:
    • Team:
      UI
    • Sprint:
      UI - 2020-10

      Description

      Right now, nuxeo-date-picker and nuxeo-date assume the date is in local mode:

      1) nuxeo-date-picker assumes the input is in the local timezone and converts it to UTC when storing the value

      2) nuxeo-date assumes the received date, which is in UTC, should be displayed in local time.

      We should provide a way to configure this and allow these widgets to be in UTC mode:

      1) nuxeo-date-picker assumes the input is in UTC and will store it as is

      2) nuxeo-date assumes the received date should be displayed as is, in UTC

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours, 15 minutes
                  1d 4h 15m