Re: change server time

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

 



Sumit Sharma wrote:
Hi,

   Whenever I am using date('r') function It shows time in GMT instead of
local time set on my machine. Do I need to configure the time separately. I
am using WAMP server locally.

Thanks,
         Sumit


Not sure about windows - but

putenv("TZ=America/Los_Angeles");

in your script should work (change the timezone to whatever you want locally).

You should be able to set the TZ variable globally in your php.ini file.

--
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