|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-21 19:56 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
Description: ------------ strtotime should be able to add 1 day to a given timestamp using "+1 day", under php 5.0.4 it does, after upgrading to 5.1.1 it returns "12/31/1969" Reproduce code: --------------- $date = "12/21/2005"; $stamp = strtotime($date); $new_date = date('n/j/Y',strtotime("+ 1 day",$stamp)); echo "<br>Date: ".$date; echo "<br>Date +1: ".$new_date; Expected result: ---------------- Date: 12/21/2005 Date +1: 12/22/2005 Actual result: -------------- Date: 12/21/2005 Date +1: 12/31/1969