Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-1534

Have nuxeo-date-picker use full locale

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.x, 3.1.x
    • Fix Version/s: 3.0.x, 3.1.x
    • Component/s: Web UI

      Description

      Currently when getting the moment locale we split at the dash

      moment.locale(window.nuxeo.I18n.language ? window.nuxeo.I18n.language.split('-')[0] : 'en');
      

      which ends up just taking the language part of the locale. For a user that has a locale of 'fr-CA', they expect the date to be displayed as yyyy-mm-dd but because the locale gets truncated to just 'fr', the date is displayed as dd-mm-yyyy

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: