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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC