-general@lists.php.net
Subject: [PHP] client time zone?
Hello;
I am running a server that is using UTC
and I want to be able to convert to
clients local time in some display presentations.
Is this indicated by $_SERVER[REQUEST_TIME]?
If not, is there a way to get the requesting host's
time zone so I can
jekillen wrote:
Hello;
I am running a server that is using UTC and I want to be able to
convert to clients local time in some display presentations.
Is this indicated by $_SERVER[REQUEST_TIME]?
Is there such a value at all?
If not, is there a way to get the requesting host's
time zone
To get the clients time offset you'll need to use javascript and
date.getTimezoneOffset()
But this idea has a problem. It is that you can never trust that the
clients time is actually correct. You can get the closest to it by
using the server time and offsetting that with the javascript offset
On Jan 6, 2008, at 8:04 AM, Ólafur Waage wrote:
To get the clients time offset you'll need to use javascript and
date.getTimezoneOffset()
But this idea has a problem. It is that you can never trust that the
clients time is actually correct. You can get the closest to it by
using the server
Hello;
I am running a server that is using UTC
and I want to be able to convert to
clients local time in some display presentations.
Is this indicated by $_SERVER[REQUEST_TIME]?
If not, is there a way to get the requesting host's
time zone so I can offset the servers clock value correctly?
Thank
5 matches
Mail list logo