Hey Aaron,
I just tried
<cfset normal = dateAdd("yyyy", +1, now()) />
<cfset expires= dateAdd("yyyy", +1, now()) />
<cfset expires2 = dateAdd("yyyy", +1, now()) />
<cfoutput>
#Now()#<br>
#normal#<br>
#expires#<br>
#expires2#<br>
</cfoutput>
in 2.0.2 Desktop, and it produces
{ts '2013-05-11 13:06:00'}
{ts '2014-05-11 13:06:00'}
{ts '2014-05-11 13:06:00'}
{ts '2014-05-11 13:06:00'}
It would seem that something has changed, good to know.
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.