Or go one step further, and rather than recording the time, record the 
difference in time, granted this will only ever be *really close* -> 
Write the page with a hard coded time dynamically from the server, then 
have javascript get the localtime, and store the difference in the 
cookie, rather than storing any one time, then you can always add the 
difference back on to get the current time non-server side.

Connie Chan wrote:
> 2 approachs, both js =)
> 
> 1. get time with js, write a cookie, and read the cookie.
> 2. get time with js, use a GET method to take it back.
> 
> Rgds,
> Connie
> 
> ----- Original Message ----- 
> From: "Octavian Rasnita" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, August 11, 2002 10:29 PM
> Subject: How to find the remote time?
> 
> 
> 
>>Hi all,
>>
>>How can I find the local time of the web page visitors?
>>Using localtime function shows me the localtime from the location where is
>>the server.
>>
>>I couldn't find any environment variable for this either.
>>
>>Thank you for any hint.
>>
>>Teddy's Center: http://teddy.fcc.ro/
>>Mail: [EMAIL PROTECTED]
>>
>>
>>
>>-- 
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to