Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / July 2006



Tip: Looking for answers? Try searching our database.

obtaining Server time verses browser time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
izdabye - 28 Jul 2006 16:34 GMT
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
PaulH **AdobeCommunityExpert** - 28 Jul 2006 16:39 GMT
>  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.
izdabye - 28 Jul 2006 17:05 GMT
Really

I thought now was pulling from my local java utils or something like that
PaulH **AdobeCommunityExpert** - 29 Jul 2006 04:42 GMT
> 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-20
ED-7DEE-2AB7FBB1F37ABD77

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.