PHP 4.0 Bug #3977: date() function no more sensitive to TZ environment variable

From: Date: Thu, 30 Mar 2000 09:38:45 +0000
Subject: PHP 4.0 Bug #3977: date() function no more sensitive to TZ environment variable
Groups: php.dev 
Request: Send a blank email to php-dev+get-17401@lists.php.net to get a copy of this message
From: peter.kuppelwieser@limu.com Operating system: suse linux 6.3 PHP version: 4.0 Release Candidate 1 PHP Bug Type: Misbehaving function Bug description: date() function no more sensitive to TZ environment variable following script switches Timezones in PHP3 it does not work in PHP4 Is there is an alternative not documented mechanism? #-------------------- putenv("TZ=Europe/Rome"); echo date("Y/m/d H:i:s")." ".getenv("TZ")."<br>"; putenv("TZ=Asia/Seoul"); echo date("Y/m/d H:i:s")." ".getenv("TZ")."<br>"; #-------------------- #PHP CONFIG System: Linux pjotr 2.2.13 #2 Wed Mar 15 10:13:54 CET 2000 i686 unknown Build Date: Mar 29 2000 Configure command: './configure' '--disable-debug' '--enable-track-vars' '--enable-trans-sid' '--with-apache=../apache_1.3.12' '--with-gd=/usr' '--with-mysql' php.ini path: /usr/local/lib ZEND_DEBUG=0 SAPI=Apache ZTS is undefined #/PHP CONFIG Bye peter.

« previous php.dev (#17401) next »