java.util.LocalData plusMonths and minutMonths functions are not symmetrical.

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      If I have following code which produce false:

      LocalDate dateOne = LocalDate.of(2023, 5, 31);
      LocalDate dateTwo = LocalDate.of(2023, 5, 31).plusMonth(1).minusMonth(1);
      assert dateOne.equals(dateTwo);


      FREQUENCY : always


            Assignee:
            Andrew Wang
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: