ColdFusion date and Atom 1.0 feed

To set the date in ColdFusion in the ISO-8601 format (e.g. 2004-02-12T15:19:21+00:00) use the following:

<cfset var updatedDate = dateFormat(now(), “yyyy-mm-dd”) & “T” & timeFormat(now(), “HH:mm:ss”) & “Z” />

Of course you could turn that into a nice little UDF or utility function 🙂

Advertisements

lyra captcha error – Element CAPTCHA is undefined in a Java object of type class [Ljava.lang.String

I was getting this annoying error when setting up lyra captcha (great product by the way!).

Element CAPTCHA is undefined in a Java object of type class [Ljava.lang.String

Well after a little silent swearing and a few deep breaths, I figured it out.

In the captcha folder there is an application.cfm file – edit this making the application name the same as your general application name (defined in application.cfc or application.cfm).