and to clarify even more...

just outputting...

#timeFormat(Now(),'hh:mm:ss')# returns the right time.

15:26:35

tony weeg
uncertified advanced cold fusion developer
tony at navtrak dot net
www.navtrak.net
office 410.548.2337
fax 410.860.2337


-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 30, 2003 3:17 PM
To: CF-Talk
Subject: cfmx error? (happens on redsky beta 2 as well)


hi there.

I cannot speak for cf5 or below, but, when I do a dateDiff, from now()
to 1/1/1970, im not getting the correct amount of seconds.  im getting
the correct amount of seconds plus one hour.  its almost as if cfmx isnt
taking into account server time, and adjusting for DST?

is this a bug?  or should I just code around it, because its
know/expected?

For all the question hawks:     

1. time on server and my laptop match exactly
2. both have auto adjust for dst

any ideas?

<cfoutput>#DateDiff('s','01/01/1970 00:00:00.000',Now())#</cfoutput>

try it for yourself, you'll end up with a number like 1056986141 which
was when I was typing this, now, turn that into a date time combo.... I
get this... 06/30/2003 16:15:41 which is by my counting 1 hour faster
than it actually is now!!!!!! WTH?

thanks.

tony weeg
uncertified advanced cold fusion developer
tony at navtrak dot net
www.navtrak.net
office 410.548.2337
fax 410.860.2337


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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/unsubscribe.cfm?user=89.70.4
                                

Reply via email to