Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3200 invoked from network); 4 Aug 2014 00:46:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2014 00:46:03 -0000 Authentication-Results: pb1.pair.com header.from=ppasindud@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ppasindud@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.52 as permitted sender) X-PHP-List-Original-Sender: ppasindud@gmail.com X-Host-Fingerprint: 209.85.216.52 mail-qa0-f52.google.com Received: from [209.85.216.52] ([209.85.216.52:49799] helo=mail-qa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/E8-25844-AC7DED35 for ; Sun, 03 Aug 2014 20:46:02 -0400 Received: by mail-qa0-f52.google.com with SMTP id j15so6290598qaq.11 for ; Sun, 03 Aug 2014 17:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=UTpCUWqGem8Z8um/8J3IThkna+p+xzPKnvQ1fjkU1t4=; b=0H64sc9izOXKgn0eS6+koLPWuOC8On2/VkU/KvHJPJW7ho6f/cmRYV+Vu8Jnn5QrbO KzZbVTu7f10wNTC5HVglzXPYL/f+je6r4Qi/01lOueJtX/11uA8RJ/x3DvPpzozdlB09 FTFvmNWYwkJfgVdkCh+hcq9C4GdIaSz2UxReL0f2ESqaLbA/5mn4nsemtywPladipHDU lmUeusZXqEnoJXcghyGuCAKo4hqgA+erudkZzQKby8/I/qn5+mGt5rEdcqbJzgZYhOa3 vIHsyj/gg91FCauxeMVVGyDYvAgbCQ0xc36BHfboz/l+BVHkofow3i7ek45+6nNDKtho /y4Q== MIME-Version: 1.0 X-Received: by 10.140.97.117 with SMTP id l108mr29876645qge.29.1407113185245; Sun, 03 Aug 2014 17:46:25 -0700 (PDT) Received: by 10.140.48.69 with HTTP; Sun, 3 Aug 2014 17:46:25 -0700 (PDT) Date: Mon, 4 Aug 2014 06:16:25 +0530 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a113941d690c08204ffc31152 Subject: Date diff bug #65003 From: ppasindud@gmail.com (Pasindu De Silva) --001a113941d690c08204ffc31152 Content-Type: text/plain; charset=UTF-8 Hi I had a similar error and check the src in intervel.c timelib_diff the date is changed to local or gmt from 13-03-01 13-04-01 to 13-02-28 13-03-31 rt->d = two->d - one->d; and makes it 1 month and 3 days could it be solved by only running timelib_apply_localtime if date zones are different or else can put some other conditions to to prevent this, any other way to solve this, bug is for php 5.4 but exists in newer versions too. Thanks Pasindu -- *Pasindu De SilvaLinkedIn * *ppasindud@gmail.com* *G+ ppasindud * --001a113941d690c08204ffc31152--