I thought it could've been something like that too. I tried Googling it a few
different ways but couldn't find anything about it. But if that's the reason,
why doesn't CF5 or JavaScript recognize it?
It's just one of those things where an odd problem might crop up because of the
consistency. Unlikely, I guess, but I'd still rather not have to worry about
how dates are being handled...
Chris
> -----Original Message-----
> From: Barney Boisvert
> Sent: Wednesday, August 17, 2005 2:36 PM
> To: CF-Talk
> Subject: Re: DateDiff bug?
>
>
> I would imagine that's because the powers that be made some adjustment
> to time during those two years. Kind of like leap year, but a
> one-time deal. Since they're paired, it might be a change they made
> in 1942 (like turning on DST in the spring and not turning off in the
> fall), and then in 1945 decided that was silly, so they undid it
> (turned DST back off in the fall).
>
> That's just a WAG, but I'd imagine it's something along those lines,
> rather than a bug.
>
> cheers,
> barneyb
>
> On 8/17/05, Lofback, Chris wrote:
> > I've been looking at how the DateDiff calculations work in
> CFMX 6.1 and found an odd issue. It appears that DateDiff
> "thinks" that 1942 only has 8759 hours and that 1945 has 8761
> hours when both should have 8760. This code shows the discrepancy:
> >
> > <CFLOOP FROM="1940" TO="1950" INDEX="y">
> > <CFSET a = createDateTime(y-1,1,1,0,0,0)>
> > <CFSET b = createDateTime(y ,1,1,0,0,0)>
> > <CFSET d = dateDiff('h',a,b)>
> > <BR><CFOUTPUT>#Year(a)# - #Year(b)# : #d#</CFOUTPUT>
> > </CFLOOP>
> >
> > This weird hour counts appear in CFMX 6.1 and BlueDragon
> 6.2 but not in CF5. I'm guessing it may be a java issue? Is
> this a bug or a feature? :)
> >
> > Chris
> >
>
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
>
> Got Gmail? I have 50 invites.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215464
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54