DateTimeFormat
Hello guys, cf10 got this function introduced, but I'm getting sporadic behaviour with it.
----------------
<cfset n = Now() />
<cfoutput>#DateFormat(n, 'mmm dd, yyyy')# #TimeFormat(n, 'HH:mm:ss')#</cfoutput><br />
<cfoutput>#DateTimeFormat(n, 'mmm dd, yyyy HH:mm:ss')#</cfoutput><br />
<cfoutput>#n#</cfoutput>
----------------
Jun 29, 2012 03:48:11
Jun 29, 2012 03:06:11
{ts '2012-06-29 03:48:11'}
----------------
What’s going on? Where is that offset coming from? I tried the 3rd param as well, but to no avail. It’s not that I’m depended on this function, but this behaviour is not intuitive nor very portable.
Cheers,
Petro
