|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-02 17:02 UTC] derick@php.net
[2005-09-03 13:00 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
Description: ------------ PHP 5.1 don't know some timezones that was avaible in PHP 5.0. At first, the setted TZ come from a SPL function ( date() ) and afterwards saying it doesn't know it. Ans why will this code bellow set 'UTC' in the ENV var instead of the before setted CEST? Reproduce code: --------------- <?php error_reporting(E_ALL); echo getenv('TZ') . "\n"; echo date('T') . "\n"; putenv('TZ=' . date('T')); echo getenv('TZ') . "\n"; echo date('T') . "\n"; Expected result: ---------------- CEST CEST UTC Actual result: -------------- CEST CEST Notice: date(): Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone. in /home/Thomas/test.php on line 9 UTC