ID:               40717
 Comment by:       tijnema at gmail dot com
 Reported By:      manuel dot pinhao at nvisible dot pt
 Status:           Open
 Bug Type:         Date/time related
 Operating System: Windows XP SP2
 PHP Version:      5.2.1
 New Comment:

I've tested this code on Win XP SP2 (PHP-5.2.1/Apache 2.2.3):
<?php
date_default_timezone_set("UTC");

foreach (range(-63158410,-63158390) as $s) {
        echo $s.': '.date("d-m-Y H:i:s (T)",$s)."<br>";
}
?>

And it returns this:
-63158410: 31-12-1967 23:59:50 (UTC)
-63158409: 31-12-1967 23:59:51 (UTC)
-63158408: 31-12-1967 23:59:52 (UTC)
-63158407: 31-12-1967 23:59:53 (UTC)
-63158406: 31-12-1967 23:59:54 (UTC)
-63158405: 31-12-1967 23:59:55 (UTC)
-63158404: 31-12-1967 23:59:56 (UTC)
-63158403: 31-12-1967 23:59:57 (UTC)
-63158402: 31-12-1967 23:59:58 (UTC)
-63158401: 31-12-1967 23:59:59 (UTC)
-63158400: 01-01-1968 00:00:00 (UTC)
-63158399: 01-01-1968 00:00:01 (UTC)
-63158398: 01-01-1968 00:00:02 (UTC)
-63158397: 01-01-1968 00:00:03 (UTC)
-63158396: 01-01-1968 00:00:04 (UTC)
-63158395: 01-01-1968 00:00:05 (UTC)
-63158394: 01-01-1968 00:00:06 (UTC)
-63158393: 01-01-1968 00:00:07 (UTC)
-63158392: 01-01-1968 00:00:08 (UTC)
-63158391: 01-01-1968 00:00:09 (UTC)
-63158390: 01-01-1968 00:00:10 (UTC)

I see no problem...


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

[2007-04-09 10:39:39] manuel dot pinhao at nvisible dot pt

My setup is Windows XP SP2. This bug should be reproducible in that OS.

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

[2007-04-05 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2007-03-28 08:47:02] [EMAIL PROTECTED]

I can't reproduce this on windows (2k) either.

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

[2007-03-05 10:35:07] [EMAIL PROTECTED]

Portugal didn't do DST between 1966 and 1976, so that is not the issue.
I'll have to see what I get on Windows once that POS wants to boot again
:)

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

[2007-03-05 10:20:38] manuel dot pinhao at nvisible dot pt

Yes, this seems to be a windows-only problem. I've tested it on Linux
and it works as expected.
Regarding DST, I'm no expert on this matter, but DST could probably
'bump' time one hour forwards or backwards, not lose a whole day. As for
testing 6-7 AM, I wasn't able to target any hours in 01-01-1968.

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

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/40717

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

Reply via email to