Bug #68435 [Opn->Nab]: mktime
| From: | rasmus@php.net | Date: | Mon, 17 Nov 2014 15:37:47 +0000 |
| Subject: | Bug #68435 [Opn->Nab]: mktime | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188640@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68435&edit=1
ID: 68435
Updated by: rasmus@php.net
Reported by: yad_dima at mail dot ru
Summary: mktime
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: linux
PHP Version: 5.6.3
Block user comment: N
Private report: N
New Comment:
Numbers starting with 0 are octal. 09 is an invalid octal.
Previous Comments:
------------------------------------------------------------------------
[2014-11-17 15:16:37] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68435&edit=1