Storing the offset in a variable makes it easy to change globally.

There is the isDTSOn value of the GetTimeZoneInfo() function as well but you
could very well have some wrong times for a max of 5 hours depending on the
two US locations if you decide to dynamically update the offset based on
isDTSOn. That said, I would use the isDTSOn value to help decide the offset
but I would update the offset manually. Using isDTSOn would really only be a
backup plan in case you forget to update it yourself.

I havent looked at the CFC you posted, does that cover DTS? If so it may be
a simpler solution for now.


You could also cfexecute time and change the time of the server ;-)... 

Ps ... that is a joke of course... don't get yourself kicked off your host 

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-----Original Message-----
From: Paul Hastings [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 12, 2008 7:32 PM
To: CF-Talk
Subject: Re: Help! Can't I set a specific time zone for a CF App? [heur
SPAMTRAP]

Bobby Hartsfield wrote:
> You could store the time offset within an application variable then use
that
> along with dateadd() within all of your dateformat and tiemformat calls
> throughout the application.

what about DST changes?




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305135
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to