Lucee currently does not support using the 'X' portion of the mask inside of the DateTimeFormat function. When trying to create a date such as
which is 'ThreeLetterISO8601TimeZone' according to the SimpleDateFormat Java docs https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html#iso8601timezone
The following works in Coldfusion 2016:
which at the time of running it produced:
But in the latest versions of Lucee produces:
As a workaround currently the only way to get the desired output to work in Lucee is to use this:
For clarity using:
does not produce the desired result because the time zone portion does not contain a colon. Please see the comment thread below.
See attached image for the Java example with the difference between X and Z
please confirm the issue. thank you.
thank you for your input.