diff options
author | Scott MacVicar <scottmac@php.net> | 2009-01-10 00:50:45 +0000 |
---|---|---|
committer | Scott MacVicar <scottmac@php.net> | 2009-01-10 00:50:45 +0000 |
commit | a9e5e22275babc72b0a4c68d62d434a6a91522e0 (patch) | |
tree | b0bdbc5a0acc9543f85bdd57418758e1fb1cea20 /ext/date/tests/009.phpt | |
parent | cc6b14ef6dfbdec98bbcd9d8fac2273d1f24ed4b (diff) | |
download | php-git-a9e5e22275babc72b0a4c68d62d434a6a91522e0.tar.gz |
If a TZ environmental is set then it ends up getting used instead of the INI setting, use date_default_timezone_set() instead.
Diffstat (limited to 'ext/date/tests/009.phpt')
-rw-r--r-- | ext/date/tests/009.phpt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/date/tests/009.phpt b/ext/date/tests/009.phpt index a41383205b..3697ed61f5 100644 --- a/ext/date/tests/009.phpt +++ b/ext/date/tests/009.phpt @@ -1,7 +1,5 @@ --TEST-- strftime() and gmstrftime() tests ---INI-- -date.timezone=Asia/Jerusalem --SKIPIF-- <?php if (substr(PHP_OS, 0, 3) == 'WIN') die('skip posix only test.'); @@ -9,6 +7,7 @@ if (!function_exists('strftime')) die("skip, strftime not available"); ?> --FILE-- <?php +date_default_timezone_set('Asia/Jerusalem'); $t = mktime(0,0,0, 6, 27, 2006); |