php-src/ext/date/tests/default-timezone-2.phpt
Derick Rethans 2b47899981 - Overhauled selecting the correct timezone. The timezone set with
"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.
2005-07-02 21:19:25 +00:00

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