Skip to content

Commit ee0ecce

Browse files
committed
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.
1 parent bb10815 commit ee0ecce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/calendar/tests/easter_date.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ date.timezone=UTC
66
<?php include 'skipif.inc'; ?>
77
--FILE--
88
<?php
9+
putenv('TZ=UTC');
910
echo date("Y-m-d", easter_date(2000))."\n";
1011
echo date("Y-m-d", easter_date(2001))."\n";
1112
echo date("Y-m-d", easter_date(2002))."\n";

0 commit comments

Comments
 (0)