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