php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8682 date issue
Submitted: 2001-01-12 14:02 UTC Modified: 2001-01-12 14:09 UTC
From: michael at tapinternet dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.4 OS: linux redhat 6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michael at tapinternet dot com
New email:
PHP Version: OS:

 

 [2001-01-12 14:02 UTC] michael at tapinternet dot com
echo date("m/d/Y <br> h:i A",$filemodified);
used to work in earlier versions (4.0.1?)

4.0.4pl1 it doesn' work.

same line above in 4.0.4pl1 produces

01/12/2001 01:825898547 PM

with capitalized BR tag, it's even different, but still not right.  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-12 14:09 UTC] david@php.net
The formatting characters B (swatch internet time) and r (rfc-formatted date) have been added. The first argument to date() should always include only date formatting characters. You want

echo date("m/d/Y",$filemodified)." <br> ".date("h:i A",$filemodified);
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 09:01:27 2025 UTC