mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
2b47899981
"date_timezone_set" override the TZ environment variable, which on its turn overrides the date.timezone setting. If none of the three is set, we fallback to UTC. - Added "date_timezone_set" function to set the timezone that the date functions will use.
12 lines
218 B
PHP
12 lines
218 B
PHP
--TEST--
|
|
date.timezone setting [2]
|
|
--INI--
|
|
date.timezone=Europe/Oslo
|
|
--FILE--
|
|
<?php
|
|
putenv('TZ='); // clean TZ so that it doesn't bypass the ini option
|
|
echo strtotime("2005-06-18 22:15:44");
|
|
?>
|
|
--EXPECT--
|
|
1119125744
|