createTimeSpan is not numeric

Description

ts = createTimeSpan(1, 2, 3, 4) // returns 1.08546296296 in ACF // returns 1.085462962963 in Lucee isSimpleValue(ts) // returns true in ACF // returns true in Lucee isNumeric(ts) // returns true in ACF // returns false in Lucee

This is either an intended incompatibility or has been flat-out overlooked since that never seemed to have worked, not even in Railo. I assume the precision difference is an expected incompatibility due to offering milliseconds as 5th argument in Lucee.

Environment

None

Activity

Show:

Pothys - MitrahSoft 27 January 2022 at 12:07

I've checked this ticket and confirmed issue happened on the lucee latest version 5.3.9.58-SNAPSHOT. Yes, isNumeric() with createTimeSpan() result have incompatibility with ACF. createTimeSpan() returns date-time object (Java Double) in ACF, timespan in lucee.

https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-c-d/CreateTimeSpan.html
https://docs.lucee.org/reference/functions/createtimespan.html

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

Created 25 January 2022 at 15:57
Updated 18 July 2022 at 19:38

Flag notifications