I am setting up a development server on an AWS AMI with ColdFusion 2018 and mariadb 10.5.4
I did not find out what the current production versions were but it is highly possible they were somewhat older. The application was launched in 2016
The code is unchanged from production, the database is a direct backup and restore, no changes *I am getting errors in the code in
cfoutputquery when it trys to format the field Named: DateStamp. This is one example of the code that errors, it is in many places:#DateFormat(Q.DateStamp,"m/d/yyyy")# #TimeFormat(Q.DateStamp, "short")#This is the error
- "The value class
java.time.LocalDateTimecannot be converted to a date"
- "The value class
The table in mariadb has the datatype of DateStamp as datetime, this is unchanged from production
I don't know why this is expecting the field to be a LocalDateTime when it is a regular DateTime. It has to be something in the configuration of this environment but I'm having trouble understanding what? I have searched but all I get is "how to handle LocalDateTime" type of links so no help as I can't change all the code when this is a test environment that must at least start with the same code as production