ID: 28599 Updated by: [EMAIL PROTECTED] Reported By: fr33k at techie dot com -Status: Assigned +Status: Closed Bug Type: Date/time related Operating System: Debian PHP Version: 4.3.5 Assigned To: derick New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-08-06 09:24:30] derrickbtan at gmail dot com Same as previous comment: PHP5. +1 day or 24 hour only adds to the day and not the hours. $record = time(); echo date( "d:M H:i", $record ); echo "<br>"; echo date( "d:M H:i", strtotime( "+1 day", $record ) ); The relative times are taken from 00:00 dtan ------------------------------------------------------------------------ [2004-07-18 18:19:14] tumpen at fez dot dk I just experienced some weirdness involving strtotime, don't know if it's the same as this bug, since I'm not using zero base time. The following code: <?php print date("d-m-Y H:i:s", strtotime("+30 minutes", time())); ?> gives me, in php4, the correct 30 minutes extra added to current time, eg: 18-07-2004 18:45:21 (when now is 18:15:21) BUT in php5.0.0, the 30 minutes are added to 00:00:00 at todays date, eg: 18-07-2004 00:30:00, which is of course wrong. Reproduced on both mandrake and debian installations of php5 in either cli(mdk)/cgi(deb). ------------------------------------------------------------------------ [2004-06-12 12:13:39] [EMAIL PROTECTED] This should be assigned to me... ------------------------------------------------------------------------ [2004-06-12 01:00:03] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2004-06-04 14:50:36] [EMAIL PROTECTED] I run Debian-unstable and that works fine. Can you tar up your /usr/share/zoneinfo directory and email that to me? regards, Derick ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28599 -- Edit this bug report at http://bugs.php.net/?id=28599&edit=1
