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.

You could also go as far as writing your own version of the now() function
that does the dateadd math against now() ofr you and returns the results.
then you could do a global find and replace on now() with your now()
function. Just an idea.

Then your dateformat for the current time might look like
#dateformat(myNow(), 'mmm dd yyyy')#
And time would look like... #timeformat(myNow(), 'hh:mm tt')#

It would actually be cool if now() could accept and calculate an offset...

Maybe something like now('h', -5)

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


-----Original Message-----
From: Bob Wright [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 12, 2008 6:40 PM
To: CF-Talk
Subject: Help! Can't I set a specific time zone for a CF App?

Hi... I'm new here. I've been programming CF for a while but I have never
come across this problem yet.  I am really hoping someone here can help me.

I built an application for a client in the mid-west, but serve it on a
shared server on the east coast.  The client wants all the times on the site
to show in central time not eastern time.  But I can't change the time on
the server. And, I use time-math in so many places in this particular
application.

Isn't there some way to easily change the time zone of a particular
application - like in the <cfapplication> or something?  Surely I can't be
the first person to deal with this problem!  There must be an easy fix yes?

Help?

Bob






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:305132
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to