Newsgroups: php.internals,php.qa Path: news.php.net Xref: news.php.net php.internals:27551 php.qa:27023 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65636 invoked by uid 1010); 20 Jan 2007 21:55:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65610 invoked from network); 20 Jan 2007 21:55:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2007 21:55:47 -0000 Authentication-Results: pb1.pair.com header.from=lists@block-online.eu; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lists@block-online.eu; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain block-online.eu from 81.169.146.162 cause and error) X-PHP-List-Original-Sender: lists@block-online.eu X-Host-Fingerprint: 81.169.146.162 mo-p00-ob.rzone.de Solaris 10 (beta) Received: from [81.169.146.162] ([81.169.146.162:51997] helo=mo-p00-ob.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/8F-38163-2EF82B54 for ; Sat, 20 Jan 2007 16:55:46 -0500 Received: from ollie.block.home (dslb-084-063-160-101.pools.arcor-ip.net [84.63.160.101]) by post.webmailer.de (mrclete mo12) (RZmta 3.11) with ESMTP id j0KGQZhs004e29; Sat, 20 Jan 2007 22:55:43 +0100 (MET) Date: Sat, 20 Jan 2007 22:55:43 +0100 (MET) To: internals@lists.php.net User-Agent: KMail/1.7.1 Cc: php-qa@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200701202255.03204.lists@block-online.eu> X-RZG-AUTH: jsAgD75E4FZRsMYse5W8COLJ40bV Subject: easter_date() From: lists@block-online.eu (Oliver Block) Hello, after a failed test of the easter_date() function I've taken a look at the test file. The test file sets the default timezone to UTC. To make it short: easter_date() does not return correct results, if the default timezone (set with date_default_timezone_set() or INI date.timezone) is "left" of the local timezone, i.e. the UTC offset is less than the UTC offset of the local timezone. (The local timezone is determined by the computer that runs the test.) To illustrate it: The timezone on my computer is "Europe/Berlin" which is UTC +200 (+ 2 hours) according to php. If easter_date() is called on a timezone with an UTC offset < +200 you will always get one day less, e.g. 2000-04-22 instead of the correct result 2000-04-23. That is because at 2000-04-23T00:00:00 (midnight) you have 2000-04-22 on every timezone with an offset < +200). Regards, Oliver