@Gavin_Baumanis The correct solution for this, we need to follow the instructions from the error details
Please create a file en-AU-datetime.df in web-context/lucee/locales with below content (ex- C:\lucee\tomcat\webapps\ROOT\WEB-INF\lucee\locales)
yyyy-MM-dd HH:mm:ss
And restart lucee/tomcat.
So now the lsParseDateTime()
with locale en_AU supports date time string like 2022-05-15 00:00:00
.
If you want to add more formats to be supported. Please append the format you want to support in a new line on that file like
yyyy/MM/dd HH:mm:ss
yyyy-MM-dd HH:mm:ss
yyyy-MM-dd
yyyy/MM/dd
So now these formats are supported by the lsParseDateTime()
with en_AU
.
Initially, I used lucee mask nn for Minute on en-AU-datetime.df file. So my checking is failed. Actually, the locale file needs java masks(mm for Minute) for that from here SimpleDateFormat (Java Platform SE 7 ).
Sorry for the previous incomplete workaround. Please use this solution and report here back.