note 71909 modified in function.date-default-timezone-set by derick
| From: | derick@php.net | Date: | Tue, 13 May 2008 20:09:53 +0000 |
| Subject: | note 71909 modified in function.date-default-timezone-set by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139347@lists.php.net to get a copy of this message | ||
Note that there may be some unexpected side-effects that result from using either
set_default_timezone() or the putenv("TZ=...") workalike for earlier PHP versions. ANY
date formatted and output either by PHP or its apache host process will be unconditionally expressed
in that timezone.
[red. That is only true for the putenv() hack - Derick]
This does indeed include the web server's logs and other output files and reports which by
default usually do not include any indication of timezone. This has a further side-effect on log
processing and analysis, obviously.
--was--
Note that there may be some unexpected side-effects that result from using either
set_default_timezone() or the putenv("TZ=...") workalike for earlier PHP versions. ANY
date formatted and output either by PHP or its apache host process will be unconditionally expressed
in that timezone.
This does indeed include the web server's logs and other output files and reports which by
default usually do not include any indication of timezone. This has a further side-effect on log
processing and analysis, obviously.
http://php.net/manual/en/function.date-default-timezone-set.php