1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Files
archived-php-src/ext/date/tests/timezone-configuration.phpt
Derick Rethans bf23d8d2b8 - Renamed date_timezone_set/get() to date_default_timezone_set/get().
- Added missing proto's and folding marks.
2005-07-04 21:27:26 +00:00

20 lines
363 B
PHP

--TEST--
timezone configuration [1]
--INI--
date.timezone=GMT
--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