php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34283 date("U") is not returning a valid date stamp
Submitted: 2005-08-28 00:48 UTC Modified: 2005-09-21 12:44 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 3 (66.7%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: hamilton at laughland dot biz Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.1.0RC1 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hamilton at laughland dot biz
New email:
PHP Version: OS:

 

 [2005-08-28 00:48 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-21 00:14 UTC] 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-09-21 12:44 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 11:01:31 2024 UTC