ID:               22163
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Date/time related
 Operating System: MacOS X 10.2
 PHP Version:      4.3.0
 New Comment:

I think that for some reason on your system, 03 is interpreted as 0003
and not 2003 as you intended (works fine on linux). Could you try
changing the year to 2003 and see if that fixes the problem?


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

[2003-02-11 04:51:50] [EMAIL PROTECTED]

Hello

the function mktime seems to return an incorrect value for 
certain dates.

Example:

$the_day=mktime(0,0,0,03,30,03);

returns the value -3662

I have also tried different variations:
$the_day=mktime(0,0,0,3,30,03);
$the_day=mktime(0,0,0,03,30,2003);

But all yield the same result.

If I use:
$the_day=mktime(0,0,0,03,29,03);

I get a UNIX timestamp back as expected.

When using the mktime() function I normally also specify 
the daylight savings time value of 0, but this also makes 
no difference, whether it is 0 or 1.

I am using PHP as built by www.entropy.ch


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


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

Reply via email to