#27866 [Bgs->Fbk]: mktime() returns invalid value

From: Date: Mon, 05 Apr 2004 12:18:44 +0000
Subject: #27866 [Bgs->Fbk]: mktime() returns invalid value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57527@lists.php.net to get a copy of this message
 ID:               27866
 Updated by:       derick@php.net
 Reported By:      andrew at mansionproductions dot com
-Status:           Bogus
+Status:           Feedback
 Bug Type:         Date/time related
 Operating System: FreeBSD 4.8
 PHP Version:      4.3.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Previous Comments:
------------------------------------------------------------------------

[2004-04-05 06:46:36] abies@php.net

$ uname -mrs 
FreeBSD 4.8-RELEASE alpha 
$ php -r 'var_dump(mktime(0,0,0,4,4,2004));' 
int(1081029600) 
 
Make sure you have set up your locales and timezones 
correctly. 
 
 

------------------------------------------------------------------------

[2004-04-05 06:35:58] andrew at mansionproductions dot com

Description:
------------
mktime(0,0,0,4,4,2004)
returns -7262

Reproduce code:
---------------
<?php
$time = mktime(0,0,0,4,4,2004)
?>

Expected result:
----------------
$test should be 1081026000

Actual result:
--------------
$time is -7262


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27866&edit=1


Thread (4 messages)

« previous php.bugs (#57527) next »