summaryrefslogtreecommitdiff
path: root/ext/calendar
diff options
context:
space:
mode:
authorFerenc Kovacs <tyrael@php.net>2011-09-22 20:59:10 +0000
committerFerenc Kovacs <tyrael@php.net>2011-09-22 20:59:10 +0000
commit0839aee404c11b132d5f816a3acae1c575c2568f (patch)
tree7d48b030091ba9684c2511f82d5a2cf462dccefc /ext/calendar
parent8933798d364281c5106b3a2be1f3616745896408 (diff)
downloadphp-git-0839aee404c11b132d5f816a3acae1c575c2568f.tar.gz
it seems that easter_date doesn't use the date.timezone but the TZ environment variable, so it passing the return value of easter_date() to date() which uses the date.timezone will create wrong result.
Diffstat (limited to 'ext/calendar')
-rw-r--r--ext/calendar/tests/easter_date.phpt1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/calendar/tests/easter_date.phpt b/ext/calendar/tests/easter_date.phpt
index 1adff69293..9222d3c271 100644
--- a/ext/calendar/tests/easter_date.phpt
+++ b/ext/calendar/tests/easter_date.phpt
@@ -6,6 +6,7 @@ date.timezone=UTC
<?php include 'skipif.inc'; ?>
--FILE--
<?php
+putenv('TZ=UTC');
echo date("Y-m-d", easter_date(2000))."\n";
echo date("Y-m-d", easter_date(2001))."\n";
echo date("Y-m-d", easter_date(2002))."\n";