php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68435 mktime
Submitted: 2014-11-17 15:16 UTC Modified: 2014-11-17 15:37 UTC
From: yad_dima at mail dot ru Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.6.3 OS: linux
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: yad_dima at mail dot ru
New email:
PHP Version: OS:

 

 [2014-11-17 15:16 UTC] yad_dima at mail dot ru
Description:
------------
mktime not work correctly

Test script:
---------------
date_default_timezone_set('UTC');

$d = mktime(2, 3, 4, 09, 09, 14);


print_r(date('d.m.Y H:i:s',$d));

Expected result:
----------------
09.09.14 02:03:04

Actual result:
--------------
30.11.2013 02:03:04

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-17 15:37 UTC] rasmus@php.net
-Status: Open +Status: Not a bug
 [2014-11-17 15:37 UTC] rasmus@php.net
Numbers starting with 0 are octal. 09 is an invalid octal.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 01:00:01 2026 UTC