PHP 4.0 Bug #3977 Updated: date() function no more sensitive to TZ environment variable
| From: | sniper@php.net | Date: | Tue, 09 Jan 2001 09:06:21 +0000 |
| Subject: | PHP 4.0 Bug #3977 Updated: date() function no more sensitive to TZ environment variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43522@lists.php.net to get a copy of this message | ||
ID: 3977
Updated by: sniper
Reported By: peter.kuppelwieser@limu.com
Status: Closed
Old-Bug Type: Misbehaving function
Bug Type: *General Issues
Assigned To:
Comments:
Fixed in CVS.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-07-11 11:29:00] peter.kuppelwieser@limu.com
I have now tesded 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
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 producec Rome time)
2000/07/10 17:29:11 Europe/Rome
2000/07/10 17:29:11 Asia/Seoul
---------------------------------------------------------------------------
[2000-07-02 05:08:30] sterling@cvs.php.net
This is fixed in PHP4.0.1
---------------------------------------------------------------------------
[2000-03-30 04:38:45] peter.kuppelwieser@limu.com
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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=3977