From: gamin at centras dot lt Operating system: WinXP HE SP1 PHP version: 5.0.0RC2 PHP Bug Type: Date/time related Bug description: strtotime("now")
Description: ------------ Simple script... doesn't matter how much time i run it - strototime("now") produces same result for whole day. On next month day it produces same result. Seems i didn't have any problem on RC1. Reproduce code: --------------- $str = "now"; $timestamp = strtotime($str); echo "$str == " . date('l dS of F Y h:i:s A', $timestamp) . "<br />\n"; $timestamp = time(); echo "Good is " . date('l dS of F Y h:i:s A', $timestamp) . "<br />\n"; Expected result: ---------------- now == Wednesday 28th of April 2004 10:02:54 PM Good is Wednesday 28th of April 2004 10:02:54 PM Actual result: -------------- now == Wednesday 28th of April 2004 12:00:00 AM Good is Wednesday 28th of April 2004 10:02:54 PM -- Edit bug report at http://bugs.php.net/?id=28209&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28209&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28209&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28209&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28209&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28209&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28209&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28209&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28209&r=support Expected behavior: http://bugs.php.net/fix.php?id=28209&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28209&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28209&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28209&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28209&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28209&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28209&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28209&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28209&r=float