ID:               22163
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Date/time related
 Operating System: MacOS X 10.2
 PHP Version:      4.3.0
 New Comment:

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


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

[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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

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

[2003-02-12 08:03:47] [EMAIL PROTECTED]

Maybe -- or maybe my arithmetic is off!

Could you possibly do a bit more testing and report the first time
after 01:01:03 that you get a likely result (and what it is!)?

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

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