mirror of
https://github.com/php/php-src.git
synced 2024-10-02 07:16:11 +00:00
20 lines
398 B
PHP
20 lines
398 B
PHP
--TEST--
|
|
timezone configuration [1]
|
|
--INI--
|
|
date.timezone=GMT
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set('Europe/Oslo');
|
|
echo strtotime("2005-06-18 22:15:44"), "\n";
|
|
|
|
date_default_timezone_set('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
|