Closed shashankbhat10 closed 11 months ago
@shashankbhat10 you'll need to authorize on the CLA for this PR
@thomassth @diesieben07 I think I messed up while creating the PR as the commit is from a different account. Is it fine if I create a duplicate PR with commit from this ID (I have signed the CLA on this account).
Closing PR (due to CLA conflict). Handled issue in #1538
I have a couple of questions regarding this.
What should be the expected behaviour when weekday argument is incorrect(eg: weekday is a string or the weeday value is out of valid range). Should the method be throwing an InvalidArgumentException?
Currently, the method will return the DateTime with the next/previous weekday. So, if the current weekday is Monday(1) and the methods are called with argument as 1, the method does not return the current date but the previous or next Monday. Is this the correct behaviour?
resolves #1517