- skip on win, runtime TZ via putenv is not supported with ext/date

This commit is contained in:
Pierre Joye 2011-09-13 13:58:03 +00:00
parent 14300717d8
commit 4fffbad733

View File

@ -5,9 +5,18 @@ date.timezone=GMT
--FILE--
<?php
putenv('TZ=Europe/Oslo');
if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
date_default_timezone_set('Europe/Oslo');
} else {
putenv('TZ=Europe/Oslo');
}
echo strtotime("2005-06-18 22:15:44"), "\n";
putenv('TZ=Europe/London');
if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
date_default_timezone_set('Europe/London');
} else {
putenv('TZ=Europe/London');
}
echo strtotime("2005-06-18 22:15:44"), "\n";
date_default_timezone_set('Europe/Oslo');