Skip to main content
July 28, 2006
Question

obtaining Server time verses browser time

  • July 28, 2006
  • 3 replies
  • 417 views
I designed a auction site this week and in testing I realized that the auction closes different times for different people depending on time zones.

What i need to do is pull the server time where the site is stored as the close time reference. I have no clue how to access the server time in coldfusion...any help would be appriciated...

Thanks
Craig
This topic has been closed for replies.

3 replies

Inspiring
July 29, 2006
izdabye wrote:
> Really

yes. really.

if you need to show datetimes in each user's timezone (tz), use UTC. if you
control the server, set it's tz to UTC otherwise use the dateConvert function.
from UTC datetime you can "cast" to each user's tz. in any case, read this:

http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=entry&entry=77223B6A-20ED-7DEE-2AB7FBB1F37ABD77
July 28, 2006
Really

I thought now was pulling from my local java utils or something like that
Inspiring
July 28, 2006
izdabye wrote:
> What i need to do is pull the server time where the site is stored as the
> close time reference. I have no clue how to access the server time in
> coldfusion...any help would be appriciated...

now() will do that. any datetime on a cf server is server datetime & in the
server's timezone.