mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
18 lines
337 B
PHP
18 lines
337 B
PHP
--TEST--
|
|
timezone configuration [1]
|
|
--FILE--
|
|
<?php
|
|
putenv('TZ=Europe/Oslo');
|
|
echo strtotime("2005-06-18 22:15:44"), "\n";
|
|
|
|
putenv('TZ=Europe/London');
|
|
echo strtotime("2005-06-18 22:15:44"), "\n";
|
|
|
|
date_default_timezone_set('Europe/Oslo');
|
|
echo strtotime("2005-06-18 22:15:44"), "\n";
|
|
?>
|
|
--EXPECT--
|
|
1119125744
|
|
1119129344
|
|
1119125744
|