summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2009-01-10 00:51:04 +0000
committerScott MacVicar <scottmac@php.net>2009-01-10 00:51:04 +0000
commitb4707a5e0256826d4495b51cb00ac83b3d4b76b5 (patch)
treef762e8a0030733975296f194d1e6cf6497458c44
parenta9e5e22275babc72b0a4c68d62d434a6a91522e0 (diff)
downloadphp-git-b4707a5e0256826d4495b51cb00ac83b3d4b76b5.tar.gz
Some more tests that needed fixed.
-rw-r--r--ext/standard/tests/general_functions/sunfuncts.phpt3
-rw-r--r--ext/standard/tests/time/idate.phpt3
2 files changed, 2 insertions, 4 deletions
diff --git a/ext/standard/tests/general_functions/sunfuncts.phpt b/ext/standard/tests/general_functions/sunfuncts.phpt
index 37a8636898..59acb122c5 100644
--- a/ext/standard/tests/general_functions/sunfuncts.phpt
+++ b/ext/standard/tests/general_functions/sunfuncts.phpt
@@ -2,10 +2,9 @@
date_sunrise() and date_sunset() functions
--INI--
precision=13
-date.timezone=Asia/Jerusalem
--FILE--
<?php
-
+date_default_timezone_set('Asia/Jerusalem');
for($a=1;$a<=12;$a++){
echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_TIMESTAMP,31.76670,35.23330,90.83,2)." ";
echo date_sunrise(mktime(1,1,1,$a,1,2003),SUNFUNCS_RET_STRING,31.76670,35.23330,90.83,2)." ";
diff --git a/ext/standard/tests/time/idate.phpt b/ext/standard/tests/time/idate.phpt
index b78fd30255..0b54405499 100644
--- a/ext/standard/tests/time/idate.phpt
+++ b/ext/standard/tests/time/idate.phpt
@@ -1,9 +1,8 @@
--TEST--
idate() function
---INI--
-date.timezone=GMT0
--FILE--
<?php
+date_default_timezone_set('GMT0');
$tmp = "UYzymndjHGhgistwLBIW";
for($a = 0;$a < strlen($tmp); $a++){
echo $tmp[$a], ': ', idate($tmp[$a], 1043324459)."\n";