note 15403 deleted from function.date by jimw

From: Date: Fri, 02 Nov 2001 01:13:38 +0000
Subject: note 15403 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20106@lists.php.net to get a copy of this message
For some magic reason the putenv('TZ')-thing only works for me (php4, Linux) if I call mktime after each putenv call: putenv("TZ=US/Eastern"); mktime(0,0,0,1,1,1970); print "New York: ".date("H:i"); putenv("TZ=Europe/Berlin"); mktime(0,0,0,1,1,1970); print "Berlin: ".date("H:i"); putenv("TZ=Europe/Moscow"); mktime(0,0,0,1,1,1970); print "Moscow: ".date("H:i"); This seems to be a common problem.

« previous php.notes (#20106) next »