I am experiencing an error trying to run the following ColdFusion code:
<cfif IsDefined('FORM.add_button.y')>
<cfquery datasource="#sDSN#">
INSERT INTO lcf_event(event_id,
event_date_time,
title,
description,
type,
user_id)
VALUES('#CreateUUID()#',
#CreateODBCDateTime(CreateDateTime(FORM.year, FORM.month, FORM.day, FORM.hour, FORM.minute, 0))#,
'#FORM.title#',
'#FORM.description#',
'#FORM.type#',
'#GetAuthUser()#')
</cfquery>
<cflocation url="event_calendar.cfm" />
I am using CF11 has the function CreateODBCDateTime has been changed in CF11? I read a post about this function not working in CF8 and CF9 but working in CF7!.
I appreciate if someone can shed some light on this.
Thank you in advance.