ID:               22163
 Comment by:       ma499 at doc dot ic dot ac dot uk
 Reported By:      andrew at strawberry-world dot com
 Status:           Bogus
 Bug Type:         Date/time related
 Operating System: MacOS X 10.2
 PHP Version:      4.3.0
 New Comment:

I'm having similar problems with PHP 4.3.1 on FreeBSD 5.0-p6.

So, it is unlikely to be Mac OS X -specific (but may be xBSD specific).


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

[2003-02-13 02:48:59] andrew at strawberry-world dot com

Thanks for the feedback. Will continue using mktime() at a time other
than midnight.

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

[2003-02-12 13:12:57] [EMAIL PROTECTED]

It's MacosX specific and not PHP bug.
And you're better off when you don't use midnight for
time anyway..


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

[2003-02-12 10:08:28] andrew at strawberry-world dot com

Ok, yes that sounds reasonable.

I guess in the meantime instead of getting a time at midnight I should
opt for another, say 11pm? I think I saw another post somewhere that
recommends doing this to combat daylight savings time problems.

And I'll wait and see whether it is something that can be addressed by
PHP or whether as you say it is an OS issue.

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

[2003-02-12 09:50:56] [EMAIL PROTECTED]

OK! That actually seems reasonable.  In Europe at least, the DST
time-change is defined to take place at 01:00:00, so the hour from
01:00:00 to 01:59:59 does not exist on that date.

So it look like the bug is that the times for the hour between 00:00:00
and 00:59:59 are wrong on a date when the clock goes back for DST.

Now that we have this pinned down, I'm going to kick this to a
developer who knows about the relevant bits of the PHP source to say
whether this is something PHP can address, or whether it's a bug in the
date/time handling of MacOS X that you'll just have to live with.

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

[2003-02-12 08:37:47] andrew at strawberry-world dot com

The first result I get is when mktime() is set to:
$the_day=mktime(2,0,0,3,30,2003);

and the result is:
1048989600

instead of -1

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/22163

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

Reply via email to