@Alan: Ok. But is there a reason I can't name a variable *expires* with the
dateAdd function? Can someone confirm they are getting the same results
with the nightly?
On Saturday, May 11, 2013 11:15:56 AM UTC-5, Aaron J. White wrote:
>
> Hey guys,
>
> I was using the dateAdd function to create dates for header values and
> noticed using the function with a variable named "expires" makes the
> function work incorrectly.
> I am on the current 5-01 nightly.
> Is expires a keyword or something or is this a bug?
>
> Test case:
>
> <cfset normal = dateAdd("yyyy", +1, now()) />
> <cfset expires= dateAdd("yyyy", +1, now()) />
> <cfset expires2 = dateAdd("yyyy", +1, now()) />
>
> now : <cfdump var="#now()#" expand="false" /><br />
> normal : <cfdump var="#normal#" expand="false" /><br />
> expires : <cfdump var="#expires#" expand="false" /><br />
> expires2 : <cfdump var="#expires2#" expand="false" />
>
> my output:
>
> now : {ts '2013-05-11 10:08:02'}
> normal : {ts '2014-05-11 10:08:02'}
> expires : *{ts '1959-02-19 11:36:10'}*
> expires2 : {ts '2014-05-11 10:08:02'}
>
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.