#10550 [Com]: mktime() returns -1 for certain valid dates
| From: | giovani-spagnolo at procergs dot rs dot gov dot br | Date: | Tue, 08 Oct 2002 16:26:37 +0000 |
| Subject: | #10550 [Com]: mktime() returns -1 for certain valid dates | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21822@lists.php.net to get a copy of this message | ||
ID: 10550
Comment by: giovani-spagnolo@procergs.rs.gov.br
Reported By: chris.php@bolt.cx
Status: Closed
Bug Type: Date/time related
Operating System: FreeBSD 3.4-RELEASE
PHP Version: 4.0 Latest CVS (29/04/2001)
Assigned To: derick
New Comment:
It´s really a FreeBSD´s daylight savings bug.
Try:
mktime(0,0,0,10,13,2002) and you´ll get -1.
13/10/2001 is the first day in daylight savings time.
This problem also occurs on windows98.
Previous Comments:
------------------------------------------------------------------------
[2001-09-09 06:02:30] derick@php.net
I said closed
------------------------------------------------------------------------
[2001-09-09 06:02:17] derick@php.net
Closing this one, as it seems an issue with FreeBSD's daylight savings
time.
------------------------------------------------------------------------
[2001-04-29 15:11:04] hholzgra@php.net
daylight saving related??? (u
------------------------------------------------------------------------
[2001-04-29 11:27:18] avsm@php.net
It doesn't occur under OpenBSD; it looks like a FreeBSD issue (happens
on 4.x-STABLE as well). This came up recently on the Horde/Chora
list:
http://marc.theaimsgroup.com/?l=chora&m=98622313207343&w=2
------------------------------------------------------------------------
[2001-04-29 11:20:53] derick@php.net
I could not reproduce this under Linux. Will try later with OpenBSD. As
PHP uses the underlying C functions for this, this might actaully be a
problem with FreeBSD.
Derick
------------------------------------------------------------------------
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/10550
--
Edit this bug report at http://bugs.php.net/?id=10550&edit=1