Randy, Looks like a DST issue on Linux.
Carl Randy Johnson - CFConcepts wrote: > Hello, > > The following code displays different dates whether it is ran on a > windows machine or a linux machine. > > form.thedates are javascript times that get passed in. > > <cfset > form.thedates="1220500800000|1221105600000|1221710400000|1222315200000|"> > > <cfloop list="#form.theDates#" index="i" DELIMITERS="|"> > > <cfset theDate = DateAdd("s",i/1000,DateConvert("utc2Local", "January 1 > 1970 00:00"))> > > <cfoutput> > > #thedate# <br> > > </cfoutput> > > </cfloop> > > > > On linux here is what it displays: > > {ts '2008-09-03 23:00:00'} > {ts '2008-09-10 23:00:00'} > {ts '2008-09-17 23:00:00'} > {ts '2008-09-24 23:00:00'} > > > On windows here is what it displays (Which is correct) > > {ts '2008-09-04 00:00:00'} > {ts '2008-09-11 00:00:00'} > {ts '2008-09-18 00:00:00'} > {ts '2008-09-25 00:00:00'} > > > Any ideas on what is going on? I cannot seem to find anything that > indicates what is going on. > > I have tested this on > > Coldfusion 8 on Windows / Linux > BD 7 on Linux > > and on both linux tests the dates are off by 1 day, well actually it > looks like 1 hour. > > -Randy > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311646 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4