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

The Date field is broken when the locale is changed in Web Content

    Details

      Description

      Description
      The Date field is broken when the locale is changed in Web Content.

      It seems that the portal is not changing the date format when the locale is changed. So when we type a date like 06/28/2021 (mm/dd/yyyy) in en-US and change the locale to pt-BR where the format is (dd/mm/yyyy), it breaks because 28 is not a valid month.

      Steps to Reproduce

      1. Go to Content & Data > Web Content > Structures tab;
      2. Add a new Structure;
      3. Add a Date field and save;
      4. Go to Web Content tab;
      5. Add a Web Content with the created Structure;
      6. Type the value "06/28/2021" in the Date field;
      7. Change the locale to pt-BR.

      Expected Result
      The Date field format should change when the locale is changed.

      Actual Result
      The Date field is broken when the locale is changed.

      Reproduced In
      master: 508408c3990d266b5d737cf0ce69b9d435fe5b3b

        Attachments

          Activity

            People

            Assignee:
            guilherme.vilarim Guilherme Vilarim
            Reporter:
            thais.frota Thais Frota (Inactive)
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Engineering Assignee:
            Marcela Cunha
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              19 weeks, 6 days ago

                Packages

                Version Package
                7.4.2 CE GA3 DXP 7,4
                7.4.13 DXP GA1
                Master