House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Server (CF-Server)

ColdFusion DateDiff across timezone wrong since DST

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


Search cf-server

February 11, 2012

<<   <   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