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

A required date field without a pre populated value returns 11/30/1899

Details

    Description

      In web content when a structure has a date field that is required, but does not have a predefined value, the date displayed is 11/30/1899.

      Steps to reproduce:

      1. Go to Content -> Web Content
      2. Create a Web Content Structure with a date field
      3. Make the date field required
      4. Create a Web Content Template based on this new structure
      5. Add a new Web Content using this new structure and template

      Expected Results:
      The date field will display today's date

      Actual Results:
      The date field will display 11/30/1899

      Attachments

        1. 6.2.png
          6.2.png
          29 kB
        2. 7.0.jpg
          7.0.jpg
          28 kB
        3. bug.gif
          bug.gif
          2.63 MB
        4. pass.jpg
          pass.jpg
          60 kB
        5. reproduce.png
          reproduce.png
          50 kB

        Issue Links

          Activity

            People

              steven.gao Steven Gao (Inactive)
              jonathan.mak Jonathan Mak (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6 years, 3 weeks, 2 days ago

                Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP5
                  7.0.0 DXP SP1
                  7.0.3 CE GA4
                  7.1.X
                  Master