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

date format is not correct in special cases

    Details

      Description

      Reproduction Steps:

      1. Set up DXP 7.2, start and log in as admin - make sure to use default locale '/en'
      2. At Content / Forms, create a new Form with a date field and set '09/12/2020' (mm/dd/yy) as predefined value.
      3. Add Forms portlet to a test page and configure it displaying the new form
      4. Observe the form is correctly displayed with predefined value of today's date
      5. Change user locale to '/de' and reload the test page 

      Actual behavior:

      The date is displayed as (mm.dd.yy) instead of (dd.mm.yy)

      Expected behavior:

      The date is displayed correctly -> 12.09.2020

       

      Reproduced on:

      7.2.x@f8b430bde200adf6e31fc58dc72d9d346a85e53b

       

      Not reproducible on:

      master-private@5b40b5b7a0a805ded3391c0cc9fec5e3c1075707

      The issue is not reproducible on master, as we rewrote DatePicker.js in React. This issue requires a unique 7.2.x fix

        Attachments

          Activity

            People

            Assignee:
            chao.wang Chao Wang
            Reporter:
            norbert.nemeth Norbert Németh
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Norbert Németh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              41 weeks, 5 days ago

                Packages

                Version Package
                7.2.10 DXP FP9
                7.2.X