Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66594 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64425 invoked from network); 12 Mar 2013 16:07:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2013 16:07:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=jsundquist@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jsundquist@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.175 as permitted sender) X-PHP-List-Original-Sender: jsundquist@gmail.com X-Host-Fingerprint: 209.85.220.175 mail-vc0-f175.google.com Received: from [209.85.220.175] ([209.85.220.175:45997] helo=mail-vc0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/7B-19967-FC25F315 for ; Tue, 12 Mar 2013 11:07:44 -0500 Received: by mail-vc0-f175.google.com with SMTP id p1so2790269vcq.34 for ; Tue, 12 Mar 2013 09:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=lw+Ex0GZoAB2E98oQ96axZydalc0xMii00aUUMweXTE=; b=GFw/xKz6T3CMPHTUsn879oLU96MalK4UBczHs5ij046Gf9yvmnmguMLzz6bjjp3g/w DZoBAKhyP/Z0H+VhtId6hmQIQayCSP/9ETmCSA5hg6YxOx0Tpa5JuEQCCixHUNvRZgYm YJL2YCOoM3rshGsUt9ZWmHjkTDMIkHOeuOf0QYY+BHmbVnMiIXCT1n/pM34oIgmCWDi5 8FoA3IGGie9gsiS6AVeOKdibfXLTkWf4WfRAchbArT3+sgMe2u6Igbe+Es3p/jmhLIuh rWD1Q3wbrqP15N0eN4XmwcveCBdaCqr3JQTxDwqrSFS0cM4Zl4y7ValIiwsrScfQiFme hNkg== X-Received: by 10.58.220.66 with SMTP id pu2mr6762970vec.60.1363104461433; Tue, 12 Mar 2013 09:07:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.59.6.133 with HTTP; Tue, 12 Mar 2013 09:07:14 -0700 (PDT) In-Reply-To: References: <4ED7146272E04A47B986ED49E771E347BB431FB997@Ikarus.ameusgmbh.intern> Date: Tue, 12 Mar 2013 11:07:14 -0500 Message-ID: To: Derick Rethans Cc: Christian Stoller , "internals@lists.php.net" , =?ISO-8859-1?Q?Patrick_Matth=E4i?= Content-Type: multipart/alternative; boundary=047d7bd6adba37652204d7bc7dee Subject: Re: [PHP-DEV] DateTime->modify('tomorrow') Bug in PHP 5.3 on Linux From: jsundquist@gmail.com (Jonathan Sundquist) --047d7bd6adba37652204d7bc7dee Content-Type: text/plain; charset=ISO-8859-1 Why would the result not preserve the time? On Tue, Mar 12, 2013 at 11:04 AM, Derick Rethans wrote: > On Tue, 12 Mar 2013, Christian Stoller wrote: > > > I have a strange bug with DateTime->modify('tomorrow') in PHP 5.3 on > Linux. > > Code to reproduce: > > > > > $d = new DateTime('2013-02-05 06:33:33'); > > echo $d->format('Y-m-d H:i:s')."\n"; > > > > $d->modify('tomorrow'); > > echo $d->format('Y-m-d H:i:s')."\n"; > > ?> > > > > Current output on Windows with PHP 5.3.14: > > 2013-02-05 06:33:33 > > 2013-02-06 00:00:00 > > > > Current output on Linux (Debian) with PHP 5.3.3-7+squeeze15: > > 2013-02-05 06:33:33 > > 2013-02-06 06:33:33 > > > > Can somebody verify this behavior? Are there any information about > > that or is there already something in the bugtracker? I have googled > > but couldn't find anything about that. > > The 5.3.14 result is correct. It was apparently a bug in earlier 5.3 > versions. > > cheers, > Derick > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7bd6adba37652204d7bc7dee--