Re: Finding user's timezone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dotan Cohen wrote:
On 03/11/06, André Medeiros <andre.caum@xxxxxxxxx> 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 the timezone of the machine, then why have "e" if it's the same thing?

They're not the same thing. The date_default_timezone_set() function allows you to change the timezone that PHP will use. The 'T' option bypasses that setting and gets the timezone as set on the machine.

Example: http://dev.stut.net/php/date.php

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux