[Bug 301913] Re: php timezone in apache2 is UTC by default
Charles Hooper
chooper at plumata.com
Sat Aug 15 18:18:33 BST 2009
Micah,
I am unable to find anything in the PHP packages that would cause this. However, it is possible that your web server is setting the timezone. Here's what PHP's documentation[1] has to say about how it retrieves the default timezone:
* Reading the timezone set using the date_default_timezone_set() function (if any)
* Reading the TZ environment variable (if non empty)
* Reading the value of the date.timezone ini option (if set)
* Querying the host operating system (if supported and allowed by the OS)
In the case of Ubuntu PHP packages, the date.timezone ini option is
always blank. I would try checking the TZ environment variable from
within a script executed by apache and see what you come up with.
[1] http://us.php.net/manual/en/function.date-default-timezone-get.php
** Changed in: php5 (Ubuntu)
Status: New => In Progress
--
php timezone in apache2 is UTC by default
https://bugs.launchpad.net/bugs/301913
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list