Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GMT setting on server? 1

Status
Not open for further replies.

evergrean100

Technical User
Dec 1, 2006
115
US
I am using TimeFormat to get times of various things I am doing with Cold Fusion pages on a Windows 2000 web server using IIS.

I noticed after our upgrade to CF7 the TimeFormat always shows 5 hours ahead of the actual time so I assume it is setup with GMT.
For example: <cfoutput>#timeformat(Now(), 'hh:mm tt')#</cfoutput> will show the current time plus 5 hours.

Is this a setting on the Server that the admin needs to change??? If so please advise what I need to tell our admin??
 
Now() should show whatever time the Windows Server is set to, have you checked to make sure it's right?


Hope This Helps!

ECAR
ECAR Technologies

"My work is a game, a very serious game." - M.C. Escher
 
Windows Server Time shows current time but Cold Fusion seems to add 5 hours to what the actual Windows Server time is in New York City. So if the Server time shows 8:00 AM, the Cold Fusion will show 1:00 PM.

Please advise as I currently have to do this to get current time:
#timeformat(DateAdd('h',-5,Now()),'hh:mm tt')#
 
Have you located the problem/fix? We have just hit this exact problem.
 
It was corrected by the Admins and I think they recycled Cold Fusion services. If you need more info I can ask them if they did something else to fix the issue.
 
If you would please. We have recycled ColdFusion, and cold booted the server. Server time is correct UTC-5, but ColdFusion shows UTC.
 
Hello,

Same problem here. CF 7.0.2, JVM 1.4.2_11, Apache 2.2.4 and Vista on my development machine. Computer has PDT, but CF gets GMT (UTC). Argh! If anyone solves this, I'd sure appreciate knowing the answer!

Brad
 
Hello,

Here's the solution I found. In ColdFusion Administrator->Java and JVM->JVM Arguments add the following:

-Duser.timezone=America/Los_Angeles

Then restart CF. Of course, modify this for your zone.

Brad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top