ID: 28599
Comment by: tumpen at fez dot dk
Reported By: fr33k at techie dot com
Status: Assigned
Bug Type: Date/time related
Operating System: Debian
PHP Version: 4.3.5
Assigned To: derick
New Comment:
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).
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2004-06-03 20:48:22] fr33k at techie dot com
Unfortunately I cannot try the newer version as it is happening on a
production server so there's no way the sysadmin would allow that.
Development server is running 4.3.4 on RedHat 7.1 and it does not
exhibit the problem. I found out we are running a non-stable version of
Debian (debain-testing) so maybe that has something to do with the
issue?
------------------------------------------------------------------------
[2004-06-03 08:32:46] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Hmm, can you try the latest snapshot please?
------------------------------------------------------------------------
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