PHP 4.0 Bug #5510: date() function and TZ environment (again)

From: Date: Tue, 11 Jul 2000 15:52:32 +0000
Subject: PHP 4.0 Bug #5510: date() function and TZ environment (again)
Groups: php.dev 
Request: Send a blank email to php-dev+get-24092@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.1pl2 PHP Bug Type: Misbehaving function Bug description: date() function and TZ environment (again) <?php # similar as in bug #3977 #-------------------- 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>"; #-------------------- /* I have now tried the test script and it still does not behave correctely The output is now unpredictable. sometimes the timezone settings of Rome is used and sometimes the timezone of Seoul is used for both echo statements (one run of test produces Seoul time) 2000/07/11 00:22:22 Europe/Rome 2000/07/11 00:22:22 Asia/Seoul (another run of test produces Rome time) 2000/07/10 17:29:11 Europe/Rome 2000/07/10 17:29:11 Asia/Seoul */ ?> strange isnt it? configure statment: './configure' '--disable-debug' '--enable-track-vars' '--enable-trans-sid' '--with-apache=../apache_1.3.12' '--with-gd=/usr' '--with-mysql' bye peter!

« previous php.dev (#24092) next »