Details
Assignee
UnassignedUnassignedReporter
Marianna ShvartsapelMarianna ShvartsapelLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Priority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Marianna Shvartsapel
Marianna ShvartsapelLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Priority
Created 11 January 2018 at 22:35
Updated 9 September 2019 at 14:14
This is the example I tried:
<cfset timeStamp = "2018-01-04-23.40.56"> <cfset newTimeStamp = lsParseDateTime(timeStamp, "en", "yyyy-MM-dd-HH.mm.ss")> <cfoutput>#newTimeStamp#</cfoutput>
According to http://cflive.net:
Lucee produces the correct output:
{ts '2018-01-04 23:40:56'}
But ACF gives incorrect result:
{ts '2021-04-04 23:00:56'}
When I change the pattern to
"yyyy-MM-dd-HH.nn.ss"
(using "nn" for minutes)
Then Lucee throws an error:
Lucee 5.1.3.18 Error (java.lang.IllegalArgumentException) Message Illegal pattern character 'n' Cause java.lang.IllegalArgumentException
While ACF works correctly:
{ts '2018-01-04 23:40:56'}