ID: 31352 Updated by: [EMAIL PROTECTED] Reported By: gordonisnz+phpnet at gmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant New Comment:
Marking as bogus. Previous Comments: ------------------------------------------------------------------------ [2005-01-11 10:34:40] [EMAIL PROTECTED] PHP doesn't recognize PHP_TZ environment variable. There's TZ environment variable which values are system specific and same for all applications AFAIK. ------------------------------------------------------------------------ [2004-12-30 13:23:17] gordonisnz+phpnet at gmail dot com Description: ------------ http://www.php.net/manual/en/ref.datetime.php In the TIME / DATE sections of your site, There are very few references to the PHP_TZ - Timezone area of PHp - this can be very useful.. EG :- Example shown :- http://nz2.php.net/localtime notes :- test at test dot de 22-Aug-2001 05:05 (I didnt put that there) - Ive been looking for Some time, & the putenv( "PHP_TZ=Europe/Berlin" ); That command can be very useful to me - & does exactly what I want / Need - Ps - Can it also be added to the side-menu too.. - ALSo - a list of known timezones that PHP recognises ?? Thanks... Reproduce code: --------------- <?php print "<HTML><body><pre>"; setlocale( "LC_ALL", "de_DE" ); putenv( "PHP_TZ=Europe/Berlin" ); $now = time(); print_r( localtime(time(),true) ); print_r( getdate() ); print date("H:i:s"); print date("T"); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31352&edit=1