#31352 [Opn->Bgs]: PHP_TZ environment variable

From: Date: Tue, 11 Jan 2005 09:36:20 +0000
Subject: #31352 [Opn->Bgs]: PHP_TZ environment variable
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969365911@lists.php.net to get a copy of this message
ID: 31352 Updated by: vrana@php.net 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] vrana@php.net 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

« previous php.doc (#969365911) next »