#22017 [Opn->Csd]: Unexpected error in date() (timestamp from strtotime())
| From: | iliaa@php.net | Date: | Mon, 03 Feb 2003 22:49:37 +0000 |
| Subject: | #22017 [Opn->Csd]: Unexpected error in date() (timestamp from strtotime()) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32028@lists.php.net to get a copy of this message | ||
ID: 22017
Updated by: iliaa@php.net
Reported By: k.schroeder@php.net
-Status: Open
+Status: Closed
Bug Type: Date/time related
Operating System: Windows 2000 Server
PHP Version: 4CVS-2003-02-02 (stable)
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, 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/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
The error is more descriptive now. The cause for this problem is that
you are trying to generate a date string based on a timestamp earlier
then Jan 1 1970, which something that is not supported by Win32.
Previous Comments:
------------------------------------------------------------------------
[2003-02-02 15:01:06] k.schroeder@php.net
Running ext/standard/tests/time/002.phpt on W2k server produce a
warning:
"Warning: date() [/phpmanual/function.date.html]: Unexpected error
..."
Example code:
date ("Y-m-d H:i:s\n", strtotime ("Dec 21 12:16"));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22017&edit=1