#29759 [Opn->Bgs]: strtotime('now') has changed behaviour in PHP5

From: Date: Thu, 19 Aug 2004 14:32:23 +0000
Subject: #29759 [Opn->Bgs]: strtotime('now') has changed behaviour in PHP5
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-64943@lists.php.net to get a copy of this message
ID: 29759 Updated by: derick@php.net Reported By: peter at peterbengtson dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Mac OS X 10.3 PHP Version: 5.0.0 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Duplicate of http://bugs.php.net/bug.php?id=28209 Previous Comments: ------------------------------------------------------------------------ [2004-08-19 16:05:20] peter at peterbengtson dot com Description: ------------ strtotime('now') seems to return a different result in PHP5 than in PHP4. It used to return the current timestamp, but in PHP5 it seems to return the a timestamp representing the current date at 00:00:00. Thus it is now necessary to check explicitly for 'now' and substitute it with the value of time(). The documentation link does not explain this change in behaviour, unfortunately. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29759&edit=1

« previous php.bugs (#64943) next »