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

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 09:00:01 2026 UTC