Here is the out of a command I found to show you the DST dates:
zdump -v /etc/localtime | grep
2008
/etc/localtime Sun Mar 9 06:59:59 2008 UTC = Sun Mar 9 01:59:59 2008
EST isdst=0 gmtoff=-18000
/etc/localtime Sun Mar 9 07:00:00 2008 UTC = Sun Mar 9 03:00:00 2008
EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 2 05:59:59 2008 UTC = Sun Nov 2 01:59:59 2008
EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 2 06:00:00 2008 UTC = Sun Nov 2 01:00:00 2008
EST isdst=0 gmtoff=-18000
zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007
EST isdst=0 gmtoff=-18000
/etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007
EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007
EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007
EST isdst=0 gmtoff=-18000
-Randy
Carl Von Stetten wrote:
> 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:311647
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4