php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8162 date("n",$timestamp)
Submitted: 2000-12-08 04:25 UTC Modified: 2000-12-08 05:13 UTC
From: otto at bit dot nl Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: Earlier? Upgrade first! OS: Apache/1.3.4 (Unix) PHP/3.0.7
Private report: No CVE-ID: None
 [2000-12-08 04:25 UTC] otto at bit dot nl
Hi!

$month = date("m",$date);
works fine
$month = date("n",$date);

returns 'n' !

Installed PHP 3.07, couldnt find it on bugs.php.net.

http://nl.php.net/manual/function.date.php3 Doesnt say it was fixed in a later version.


Greetings,
Otto

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-08 05:13 UTC] hholzgra@php.net
"Earlier? Upgrade first!" 

i've tested it 3.0.16  and 4.0.3 and it works
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 10:00:01 2026 UTC