note 15403 added to function.date
| From: | hajo at noerenberg dot N0SPAM dot de | Date: | Sat, 08 Sep 2001 22:02:46 +0000 |
| Subject: | note 15403 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17818@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.
http://www.php.net/manual/en/function.date.php