Results in Lucee 4.5 & Coldfusion: {ts ‘2024-10-25 14:30:00’}
But in Lucee 5.x / 6.x : {ts ‘2024-01-25 14:30:00’}
When I change the parse pattern to “yyyy-MM-dd HH:nn:ss” it works as expected: {ts ‘2024-10-25 14:30:00’}
According to the docs, dd and DD should result the same.
I could change my (large) codebase, but was hoping to avoid that.
Hmm, interesting indeed. I am running Lucee with Java 11.0.23
Didn’t check CF 2021/2023 because we have those not running here. Thanks for pointing that out!
I guess I’ll need to change my (large) codebase for this, no problem.
I don’t recall in which version of Lucee the change was made…
But I do distinctly recall having the same issues.
Subsequently, I too had to change all the date/datetime masks that were in our code - thankfully we use only a couple of different masks so a simple regex was able to correct all instances in just a few separate find/replace operations.