dateDiff member function expects date2 parameter

Description

now().diff(datePart="s", date1=now());

Returns the error: missing required argument [date2] for member function call [diff]

However date2 isn’t an expected parameter according to the docs https://docs.lucee.org/reference/objects/datetime/diff.html

The documentation is correct. I’ve provided two dates.

Environment

None

Activity

Show:
Duplicate

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 30 January 2024 at 11:51
Updated 31 January 2024 at 06:35
Resolved 31 January 2024 at 06:35

Flag notifications