-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.x, master, master-deprecated
-
Fix Version/s: 2.0.x, master, master-deprecated, 3.0.x, 2.0.0.74-deprecated, 3.1.x
-
Component/s: DataType
-
Labels:None
-
Fix Priority:5
-
Git Pull Request:
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.