php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29759 strtotime('now') has changed behaviour in PHP5
Submitted: 2004-08-19 16:05 UTC Modified: 2004-08-19 16:31 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: peter at peterbengtson dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.0.0 OS: Mac OS X 10.3
Private report: No CVE-ID: None
 [2004-08-19 16:05 UTC] 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. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-19 16:32 UTC] derick@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 02:01:27 2024 UTC