php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6217 mktime/date returning unexpected value
Submitted: 2000-08-17 11:07 UTC Modified: 2000-08-20 07:28 UTC
From: michael at tapinternet dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: linux redhat 6.1
Private report: No CVE-ID: None
 [2000-08-17 11:07 UTC] michael at tapinternet dot com
<? echo date("m-d-Y",mktime(0,0,0,0,0,0)); ?>

This returns '11-30-1999'.  That doesn't seem to make sense - shouldn't it be 
January 1, 1970 or something like that?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-17 11:13 UTC] stas@php.net
Failed to reproduce on latest CVS.
 [2000-08-20 07:28 UTC] sniper@php.net
I can not reproduce this either with same platform and with 
latest CVS of php.

Reopen this report if problem still persists (with latest CVS or snapshot from snaps.php.net)

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 03:01:31 2024 UTC