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

When it is not given, <liferay-ui:input-time> uses the current minutes instead of zero

    Details

    • Story Points:
      4
    • Fix Priority:
      4

      Description

      If a user types an hour into an input generated by <liferay-ui:input-time>, without specifying the minutes, the input will insert the current minutes into the hour.

      Steps to reproduce

      1. Add blog portlet to a page
      2. Click in "Add Entry"
      3. Select the content of the "Display Date" time input. Delete it
      4. Observe the current hour and minutes (that is, look at the clock of your machine)
      5. Type "7 AM" into it

      Expected results:

      • The content would be replaced by "07:00 AM"

      Actual results

      • The content is replaced by "07:<XY> AM", where "<XY>" are the current minutes.
        • If the time observed at step #4 is, let us say, 3:47 PM, then the value displayed in the input will be "07:47 AM"

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 8 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 M1