[Tickets #3741] monthdayyear field for birthday before 1970-01-01
bugs@bugs.horde.org
bugs at bugs.horde.org
Mon May 1 04:51:58 PDT 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=3741
-----------------------------------------------------------------------
Ticket | 3741
Updated By | horde at public.linkpool.de
Summary | monthdayyear field for birthday before 1970-01-01
Queue | Turba
Version | 2.1
State | Assigned
Priority | 2. Medium
Type | Bug
Owners | Horde Developers
-----------------------------------------------------------------------
horde at public.linkpool.de (2006-05-01 04:51) wrote:
I found the code that causes this problem.
It's inside
horde/lib/Horde/date.php
The
function timestamp()
{
return MakeTime($this->hour, $this->min, $this->sec, $this->month,
$this->mday, $this->year);
}
Returns a wrong value for dates before 1970-01-01
System
Debian Sarge 3.1 with PHP Version 4.3.10-16
Resolution could be:
http://www.php.net/mktime#38068
For me, this works.
Ralph
More information about the bugs
mailing list