House of Fusion
Home of the ColdFusion Community
Hostmysite VPS Hosting

Search cf-server

August 20, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
           1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31             

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition

For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
Home / Groups / ColdFusion Server (CF-Server)

ColdFusion DateDiff across timezone wrong since DST

Reply  |   Show Full Thread  |   RSS Feed  |   Subscribe to this Group
Author:
Wil Genovese
03/20/2008 01:15 PM

I have a different take on the CF timezone issues.  First off our servers are and have been adjusted for DST correctly. They shifted automatically without issues, now() returns the correct time for our servers in the Central timezone.  I did however notice a datediff() issue.  If your doing a datediff across the spring DST time shift your get weird results that are an hour off. Use this link to see the code I'm using and an example of the output. This is on a BlueDragon server, but if you run the code on CF7 or CF8 you will get similar incorrect values. http://www.wilgeno.com/duration.cfm


Mailing Lists