I discovered a bug with Lucee 6+ parsing of string...
# lucee
d
I discovered a bug with Lucee 6+ parsing of string dates: https://luceeserver.atlassian.net/browse/LDEV-5566 In a nutshell, when parsing a timestamp with trailing zeros in the milliseconds, the zeros are being dropped, so a string like
2016-04-11 18:30:06.083
gets converted to
2016-04-11 18:30:06.830
. I suspect this could be affecting a lot of code that's deserializing JSON:
Copy code
ds = deserializeJSON('["2016-04-11 18:30:06.083"]');

writeDump(dateTimeFormat(ds[1], "yyyy-mm-dd HH:nn:ss.lll"));
This will produce
2016-04-11 18:30:06.830
instead of
2016-04-11 18:30:06.083
.
I created a PR to fix this issue: https://github.com/lucee/Lucee/pull/2558
👍🏼 1