Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66595 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70118 invoked from network); 12 Mar 2013 16:30:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2013 16:30:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:40750] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/8C-19967-7285F315 for ; Tue, 12 Mar 2013 11:30:32 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 28FE9DE13E; Tue, 12 Mar 2013 16:30:28 +0000 (GMT) Date: Tue, 12 Mar 2013 16:30:27 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Jonathan Sundquist cc: Christian Stoller , "internals@lists.php.net" , =?UTF-8?Q?Patrick_Matth=C3=A4i?= In-Reply-To: Message-ID: References: <4ED7146272E04A47B986ED49E771E347BB431FB997@Ikarus.ameusgmbh.intern> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] DateTime->modify('tomorrow') Bug in PHP 5.3 on Linux From: derick@php.net (Derick Rethans) No top posting please! On Tue, 12 Mar 2013, Jonathan Sundquist wrote: > > On Tue, Mar 12, 2013 at 11:04 AM, Derick Rethans wrote: > > > > 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. > > Why would the result not preserve the time? Because "tomorrow" starts at midnight. You want "+1 day". cheers, Derick