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

Fix nuxeo-date element to take into account locale and/or timezone

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.7
    • Component/s: Widgets
    • Release Notes Summary:
      The nuxeo-date element takes into account the locale to display the dates.
    • Backlog priority:
      600

      Description

      When setting the locale to French in the browser, the dates are still displayed with English formatting. We see

       January 30, 1981

      instead of

       30 janvier 1981

      This bug does not exist with LTS 2019 (Elements v2.4), so I tried to compare the code :

      2.4 : https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/widgets/nuxeo-date.html has a "timezone" property which is used to format the date

      3.0 : https://github.com/nuxeo/nuxeo-ui-elements/blob/master/widgets/nuxeo-date.js does not have a timezone

      Maybe it's the root cause of the issue.

       

      Expected behavior: the date is displayed with the standards of the language set in the browser.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h