#34283 [Ana->Csd]: date("U") is not returning a valid date stamp
| From: | sniper@php.net | Date: | Wed, 21 Sep 2005 10:44:29 +0000 |
| Subject: | #34283 [Ana->Csd]: date("U") is not returning a valid date stamp | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85350@lists.php.net to get a copy of this message | ||
ID: 34283
Updated by: sniper@php.net
Reported By: hamilton at laughland dot biz
-Status: Analyzed
+Status: Closed
Bug Type: *General Issues
Operating System: Windows XP SP2
PHP Version: 5.1.0RC1
New Comment:
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-09-21 00:14:56] nlopess@php.net
OK, the problem is that when buildconf runs it replaces the
config.w32.h file (which is somewhat strange, as that file is in CVS).
The solution is to patch the correct file :)
Patch: http://mega.ist.utl.pt/~ncpl/php_win32_printf.txt
------------------------------------------------------------------------
[2005-08-28 00:48:28] hamilton at laughland dot biz
Description:
------------
The problem is is as per the summary.
date("U") is not returning a valid datestamp.
In my case it is returning "%ld" (without quotes).
The date function is returning the expected results for other pattern
strings I have tried.
Reproduce code:
---------------
$today = date("U");
Returns %ld
Expected result:
----------------
A valid timestamp should have been returned.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34283&edit=1