note 11811 modified in function.putenv by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 01:03:26 +0000 |
| Subject: | note 11811 modified in function.putenv by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141883@lists.php.net to get a copy of this message | ||
for those who have problems with the putenv ('TZ=Europe/Amsterdam').
I found that there is a solution/work-a-round. It will work, but only if you add
mktime(0,0,0,1,1,1970) on the next line. So:
<?php
putenv ('TZ=Europe/Amsterdam');
mktime(0,0,0,1,1,1970)
echo date("H:i:s");
?>
--was--
for those who have problems with the putenv ('TZ=Europe/Amsterdam').
I found that there is a solution/work-a-round. It will work, but only if you add
mktime(0,0,0,1,1,1970) on the next line. So:
putenv ('TZ=Europe/Amsterdam');
mktime(0,0,0,1,1,1970)
echo date("H:i:s");
http://php.net/manual/en/function.putenv.php