Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-130795

Date field value does not persist on Web Content when default language is not English US

    Details

      Description

      Description
      Web Content date field value is not persisted when using different default language.
      This problem occurs when we type date with a day greater than 12, it seems like the Portal is trying to parse the date using en-US date format.

      Steps to Reproduce

      1. Go to Control Panel > Instance Settings > Localization;
      2. Change default language to Portuguese (Brazil) and save;
      3. Go to Global Menu > Liferay DXP;
      4. Go to Product Menu > Content & Data > Web Content > Structure;
      5. Create a Structure with one Date field and save;
      6. Add a Web Content with the created Structure;
      7. Type a title and add a value (19/04/2021) for Date field;
      8. Publish and reopen.

      Expected Result
      Date field value is persisted
      Actual Result
      Date field value is not persisted
      Reproduced In
      master: 26ad81ce8605185aeeaa3ccb9c919a064149abba

        Attachments

          Activity

            People

            Assignee:
            thais.frota Thais Frota (Inactive)
            Reporter:
            thais.frota Thais Frota (Inactive)
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Engineering Assignee:
            Carlos Henrique de Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              16 weeks, 1 day ago

                Packages

                Version Package
                7.4.1 CE GA2 DXP 7,4
                Master