Can't cast [March, 04 2025 09:20:38 -0800] to date value

Version Lucee 6.2.0.321
Loader Version 6.0.3.1
Servlet Container Apache Tomcat/9.0.89
Java 21.0.5 (Eclipse Adoptium) 64bit
OS Windows Server 2022 (10.0) 64bit
Architecture 64bit

worked fine in 6.1x

upon further inspection it seems serializeJSON is creating the bad data that lucee can’t read.

serializeJSON(now())

See here:

and here:
https://luceeserver.atlassian.net/browse/LDEV-5278

We encountered it using serializeJSON( now() ) as well. It only errs when the ofset is a negative value.

1 Like

I actually reported https://luceeserver.atlassian.net/browse/LDEV-5278 . At the time I hadn’t realized that that date was being formatted in that way by serializesJSON(). Even though the date is not considered valid should serializeJSON() format it that way in the first place? Seems like a strange format.

1 Like

we have addressed the issue, details in the ticket
https://luceeserver.atlassian.net/browse/LDEV-5278