#40717 [Opn->Fbk]: date "01-01-1968" inaccessible via date function

From: Date: Wed, 28 Mar 2007 09:02:50 +0000
Subject: #40717 [Opn->Fbk]: date "01-01-1968" inaccessible via date function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110868@lists.php.net to get a copy of this message
ID: 40717 Updated by: tony2001@php.net Reported By: manuel dot pinhao at nvisible dot pt -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: Windows XP SP2 PHP Version: 5.2.1 Previous Comments: ------------------------------------------------------------------------ [2007-03-28 08:47:02] derick@php.net I can't reproduce this on windows (2k) either. ------------------------------------------------------------------------ [2007-03-05 10:35:07] derick@php.net 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. ------------------------------------------------------------------------ [2007-03-05 10:03:49] derick@php.net This works fine for me (on Linux): -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) ------------------------------------------------------------------------ [2007-03-05 00:11:56] iliaa@php.net The DST offset could move you to the next day, you may want to try to pick 6-7 am on the 1st of Jan 1968 to see if that works. ------------------------------------------------------------------------ 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

« previous php.bugs (#110868) next »