Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53358 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58771 invoked from network); 17 Jun 2011 17:11:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2011 17:11:57 -0000 Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:36559] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/51-49199-CDA8BFD4 for ; Fri, 17 Jun 2011 13:11:57 -0400 Received: by yxk8 with SMTP id 8so1685939yxk.29 for ; Fri, 17 Jun 2011 10:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=6sxywgAYYz/4f/eSB/0MSyIVYGfk2qQS/5fPhls4HAE=; b=KCtXI9ldLe9ujjt1FXpTlpvHHN7q3T4fP5MNsfMc1lg6+QHu/fM8KOUXQAx1PTDMli PayIFevXkBF6ZhP26RCTv0I0LpuA7onNdHWSCgxFT3tItZ/PFvOYAI0T9mu6ox6mEdap JsoRpj6IuqwyKxOenihnzCp1/HGAeFPSunvNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=k0y1MeHSw6/a/wwGJdiNyyf1ZIEsgR/0htdEfpqDzL5sjd/mQHFb1GUR9gmjwVS6xx lLMTdT15UxhEdRU6nLCTQ5nShckVXZczu824I3VssPzlhx337JkO18QQHFuam3VVBSwr Ux85OpL51c9dJYf9rFqNo/URpj3Ey6yCTGlV0= MIME-Version: 1.0 Received: by 10.150.56.38 with SMTP id e38mr2735971yba.113.1308330713519; Fri, 17 Jun 2011 10:11:53 -0700 (PDT) Received: by 10.146.210.3 with HTTP; Fri, 17 Jun 2011 10:11:53 -0700 (PDT) In-Reply-To: References: <4DFA96ED.90800@sugarcrm.com> <4DFB6C69.4040702@sugarcrm.com> Date: Fri, 17 Jun 2011 19:11:53 +0200 Message-ID: To: Derick Rethans Cc: Stas Malyshev , "RQuadling@GMail.com" , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] date_diff broken? From: hannes.magnusson@gmail.com (Hannes Magnusson) On Fri, Jun 17, 2011 at 18:54, Derick Rethans wrote: > On Fri, 17 Jun 2011, Derick Rethans wrote: > >> On Fri, 17 Jun 2011, Stas Malyshev wrote: >> >> > > If either of the dates use a TLA timezone (EDT, PST, GMT), rather >> > > than the long name (Europe/London, Indian/Kerguelen, >> > > America/Kentucky/Louisville), then that date is altered. >> > >> > Yes, this seems to be because TLA ones rely on ->z and ->dst which get >> > reset in timelib_unixtime2gmt() while other one relies on tzinfo which >> > is kept intact. >> >> Yup. I'm fixing it right now. > > Done... I had to do it by making a backup for now. It should be looked > at again though, and I've added that to my (long) todo list. Does it mean that all the tests Daniel added should work now? http://news.php.net/php.cvs/65174 -Hannes