Well -- that's the point of testing on cf 5 the format provided from the use
of cfdirectory on mx... That's what I meant by trying #dateformat("13
February, 2003 9:23:55 AM CST")# (the literal string, not the cfdirectory
result) on the CF 5 machine -- it might be that the CF 5 server recognizes
this as a date whereas MX does not.

There's not really such a thing as a "date object" on cf 5, it simply has an
algorithm for examining a sting to determine if it is an identifiable date.
So ... if this code produces different output on CFMX than it does on cf 5
then it's probably a bug -- it if produces the same output, but works on CF
5 but not on MX then it is _definitely_ a bug.

<cfdirectory name="mydir" ... blah blah ...>
<cfoutput>#dateformat(mydir.datelastmodified)#</cfoutput>

Or more plainly, the question is does CF5(#mydir.datelastmodified#) ==
CFMX(#mydir.datelastmodified#) -- both servers should produce the same
output (if you disclude the dateformat() and timeformat() functions) -- if
they're not the same, it's _probably_ a bug. If they are the same then it
must be a bug.



> Thanks Isaac - at work it gets returned as a date object
> and using
> DateFormat and TimeFormat works OK - MX at home returns it
> as 13 February,
> 2003 9:23:55 AM CST. At home (MX) the code is
> "DateFormat(datelastmodfied,
> "DD/MM/YYYY") but this crashes out whereas in CF5 it
> doesn't. In CF5 its
> getting returned as a date object so I'm not sure how I
> can test
> #dateformat("13 February, 2003 9:23:55 AM CST")#


> **********
> Kevin Parker
> Web Services Manager
> WorkCover Corporation

> e: [EMAIL PROTECTED]
> w: www.workcover.com

> p:+ 61 8 8233 2548
> f: +61 8 8233 2282
> m: 0418 806 166
> **********


> -----Original Message-----
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
> Sent: Monday, 24 February 2003 12:54 PM
> To: CF-Talk
> Subject: Re: CFDIRECTORY query


> May be a bug -- have you tried #dateformat("13 February,
> 2003 9:23:55 AM
> CST")# on the CF 5 machine at work?

>> (Resent due to CF_Talk problems a few days ago -
>> apologies
>> if anyone has
>> already got it)


>> I've got this cute little app that uses CFDIRECTORY. When
>> I run it at work
>> on my CF5 dev box datelastmodified is returned as a date
>> object and I can
>> manipulate it with DateFormat and TimeFormat. When I run
>> the same app at
>> home on my MX dev box datelastmodifed get returned in the
>> format 13
>> February, 2003 9:23:55 AM CST and DateFormat crashes out
>> on it. I had a dig
>> around CF Admin figuring it was some admin setting but
>> couldn't find
>> anything that looked like it. Any clues please?


>> **********
>> Kevin Parker
>> Web Services Manager
>> WorkCover Corporation

>> e: [EMAIL PROTECTED]
>> w: www.workcover.com

>> p:+ 61 8 8233 2548
>> f: +61 8 8233 2282
>> m: 0418 806 166
>> **********



>> *********************************************************
>> *
>> **************
>> This e-mail is intended for the use of the addressee
>> only.
>> It may
>> contain information that is protected by legislated
>> confidentiality
>> and/or is legally privileged. If you are not the intended
>> recipient you
>> are prohibited from disseminating, distributing or
>> copying
>> this e-mail.

>> Any opinion expressed in this e-mail may not necessarily
>> be that of the
>> WorkCover Corporation of South Australia. Although
>> precautions have
>> been taken, the sender cannot warrant that this e-mail or
>> any files
>> transmitted with it are free of viruses or any other
>> defect.

>> If you have received this e-mail in error, please notify
>> the sender
>> immediately by return e-mail and destroy the original
>> e-mail and any
>> copies.
>> *********************************************************
>> *
>> **************

>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> ~
>> ~~~~~~~~~~~|
>> Archives:
>> http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
>> Subscription:
>> http://www.houseoffusion.com/cf_lists/index.
>> cfm?method=subscribe&forumid=4
>> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
>> Get the mailserver that powers this list at
>> http://www.coolfusion.com

>>                              Unsubscribe:
> http://www.houseoffusion.com/cf_lists/uns
>>                              ubscribe.cfm?user=633.558.4



> s. isaac dealey                954-776-0046

> new epoch                      http://www.turnkey.to

> lead architect, tapestry cms   http://products.turnkey.to

> tapestry api is opensource     http://www.turnkey.to/tapi

> certified advanced coldfusion 5 developer
> http://www.macromedia.com/v1/handlers/index.cfm?ID=21816


> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> Archives:
> http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
> Subscription: http://www.houseoffusion.com/cf_lists/index.
> cfm?method=subscribe&forumid=4
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Signup for the Fusion Authority news alert and keep up
> with the latest news in ColdFusion and related topics.
> http://www.fusionauthority.com/signup.cfm

>                               Unsubscribe: http://www.houseoffusion.com/cf_lists/uns
>                               ubscribe.cfm?user=633.558.4



s. isaac dealey                954-776-0046

new epoch                      http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

tapestry api is opensource     http://www.turnkey.to/tapi

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to