Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-2075

DateMath.toMidnight() changes the value of its argument

    Details

      Description

      The methods A.DataType.DateMath.toMidnight() and A.DataType.DateMath.toLastHour() update the dates they receive as arguments. However, in any instance of their uses it proved necessary—instead, the returned value was used. This behavior also caused LPS-62778. So, let us change that: instead of changing the received value, these methods should only return a updated clone.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              maira.araujo Maíra Araujo (Inactive)
              Reporter:
              adam.brandizzi Adam Brandizzi
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 51 weeks, 3 days ago

                  Packages

                  Version Package
                  2.0.x
                  master
                  master-deprecated
                  3.0.x
                  2.0.0.74-deprecated
                  3.1.x