Re: [PHP] Finding user's timezone

2006-11-04 Thread Jochem Maas
Dotan Cohen wrote: > On 03/11/06, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Fri, November 3, 2006 6:09 am, Dotan Cohen wrote: >> > How does php decide what timezone a user is in? Although I am in >> > Haifa, Israel (GMT+2), when I go to a page with date("e") I get >> > "America/New_York" displ

Re: [PHP] Finding user's timezone

2006-11-04 Thread Dotan Cohen
On 03/11/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, November 3, 2006 6:09 am, Dotan Cohen wrote: > How does php decide what timezone a user is in? Although I am in > Haifa, Israel (GMT+2), when I go to a page with date("e") I get > "America/New_York" displayed. I could be wrong, but I

Re: [PHP] Finding user's timezone

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 6:55 am, Dotan Cohen wrote: > On 03/11/06, André Medeiros <[EMAIL PROTECTED]> wrote: >> The result of that function would depend on where the server is >> installed, not where the client is accessing it from, right? >> > > That's not what php.net/date implies: > e: "Ti

Re: [PHP] Finding user's timezone

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 6:09 am, Dotan Cohen wrote: > How does php decide what timezone a user is in? Although I am in > Haifa, Israel (GMT+2), when I go to a page with date("e") I get > "America/New_York" displayed. I could be wrong, but I think date('e') tells us where your SERVER is. Or, more

Re: [PHP] Finding user's timezone

2006-11-03 Thread André Medeiros
I second that. My company has an IP address on the mainland which is our internet gateway, but on the azorean islands the time zone is different. On 11/3/06, Edward Kay <[EMAIL PROTECTED]> wrote: > Hmm... in $_SERVER array you get a client IP so You know client coutry. if > exists a list of ip

RE: [PHP] Finding user's timezone

2006-11-03 Thread Edward Kay
> Hmm... in $_SERVER array you get a client IP so You know client coutry. if > exists a list of ip numbers and coutries should be exists list > coutries and > timezones too, so it should be easy. Eventually you may create > short list of > this countries what will be visitors from (or only biggest

Re: [PHP] Finding user's timezone

2006-11-03 Thread Pawel Miroslawski
Hmm... in $_SERVER array you get a client IP so You know client coutry. if exists a list of ip numbers and coutries should be exists list coutries and timezones too, so it should be easy. Eventually you may create short list of this countries what will be visitors from (or only biggest coutries).

Re: [PHP] Finding user's timezone

2006-11-03 Thread Stut
Dotan Cohen wrote: On 03/11/06, M <[EMAIL PROTECTED]> wrote: You can use javascript: var Today = new Date(); alert(Today.toString()); just parse the output using regexp Hmm, I suppose that I could use Javascript, but I'd rather do it all serverside. Any other ideas on behalf of the think-ta

Re: [PHP] Finding user's timezone

2006-11-03 Thread Dotan Cohen
On 03/11/06, M <[EMAIL PROTECTED]> wrote: You can use javascript: var Today = new Date(); alert(Today.toString()); just parse the output using regexp Hmm, I suppose that I could use Javascript, but I'd rather do it all serverside. Any other ideas on behalf of the think-tank that is this list

Re: [PHP] Finding user's timezone

2006-11-03 Thread Stut
Dotan Cohen wrote: On 03/11/06, André Medeiros <[EMAIL PROTECTED]> wrote: The result of that function would depend on where the server is installed, not where the client is accessing it from, right? That's not what php.net/date implies: e: "Timezone identifier" T : "Timezone setting of this m

Re: [PHP] Finding user's timezone

2006-11-03 Thread Dotan Cohen
On 03/11/06, André Medeiros <[EMAIL PROTECTED]> wrote: The result of that function would depend on where the server is installed, not where the client is accessing it from, right? That's not what php.net/date implies: e: "Timezone identifier" T : "Timezone setting of this machine" If "T" is t

Re: [PHP] Finding user's timezone

2006-11-03 Thread Stut
André Medeiros wrote: The result of that function would depend on where the server is installed, not where the client is accessing it from, right? Close but no cigar! It's how the server is configured, not where it is installed. But essentially correct, the PHP datetime functions use the serv

Re: [PHP] Finding user's timezone

2006-11-03 Thread André Medeiros
The result of that function would depend on where the server is installed, not where the client is accessing it from, right? On 11/3/06, Dotan Cohen <[EMAIL PROTECTED]> wrote: How does php decide what timezone a user is in? Although I am in Haifa, Israel (GMT+2), when I go to a page with date("e