I have a banner that displays on the site every Wednesday at 2:00
p.m.. However, I am afraid that when daylight savings time ends in
October I am going to have to rewrite my code.
It's a matter of chaning the value of a single variable, but what
happens when I move on and another developer overseas the project?
He/she won't know why that banner isn't displaying at the correct
time.
Thanks,
Aaron
P.S. Our remote server is in Ireland and the time the banner is
supposed to display is on Wednesday from 2:00 to 3:00 p.m. PT & PST.
Here is the current code:
<cfset remoteTime = dateformat(now(), "dddd, HH") />
<cfset broadcastTime = "Wednesday, 10" />
<cfset compareTimes = Compare(remoteTime, broadcastTime) />
<cfif compareTimes EQ 0>
<a href="javascript:funOpenLive();" title="World News and the
Bible"><img src="<cfoutput>#request.root#</cfoutput>images/adverts/WNB_LIVE.gif"
width="190" height="66" alt="Listen Live to World News and the Bible"
/></a>
</cfif>
On 5/11/06, Everett, Al (NIH/NIGMS) [C] <[EMAIL PROTECTED]> wrote:
> The calendar is universal. Daylight Savings Time isn't. In the U.S., DST
> begins the first Sunday in April and ends the last Sunday in October
> (and is changing in 2007 I believe). But not all areas of the U.S.
> participate in DST. The rules for DST in the UK are different. Then
> there's every other country, some of which have DST, many do not.
>
> What is it that you are trying to accomplish?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240230
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54