<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>monthdayyear field for birthday before 1970-01-01</title> 
  <pubDate>Fri, 10 Apr 2026 09:50:17 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/3741</link> 
  <atom:link rel="self" type="application/rss+xml" title="monthdayyear field for birthday before 1970-01-01" href="https://bugs.horde.org/ticket/3741/rss" /> 
  <description>monthdayyear field for birthday before 1970-01-01</description> 
 
   
   
  <item> 
   <title>Maybe after installing the latest Horde &amp; Turba updates, the</title> 
   <description>Maybe after installing the latest Horde &amp; Turba updates, the birthday

field can&#039;t save dates before 1970-01-01.



This worked before...



I included mozillaAbObsoletePerson as schema for my OpenLDAP server and

added in config/sources.php

&#039;birthday&#039; =&gt; &#039;mozillaCustom2&#039;



The LDAP browser shows for a date after 1970-01-01



# slapcat | grep custom2



1978-05-26

=&gt; mozillaCustom2: 1978-05-26 00:00:00



That&#039;s fine.



But a date before 1970-01-01 doesn&#039;t work:



1938-05-26

=&gt; mozillaCustom2: 1969-12-31 00:00:00



Any idea?



I&#039;ve tried:



$attributes[&#039;birthday&#039;] = array(

    &#039;label&#039; =&gt; _(&quot;Birthday&quot;),

    &#039;type&#039; =&gt; &#039;monthdayyear&#039;,

    &#039;required&#039; =&gt; false,

    &#039;params&#039; =&gt; array(1900),

    &#039;required&#039; =&gt; false

);



and



$attributes[&#039;birthday&#039;] = array(

    &#039;label&#039; =&gt; _(&quot;Birthday&quot;),

    &#039;type&#039; =&gt; &#039;monthdayyear&#039;,

    &#039;required&#039; =&gt; false,

    &#039;params&#039; =&gt; array(1900, null, true, &#039;%Y-%m-%d&#039;),

    &#039;required&#039; =&gt; false

);



and



$attributes[&#039;birthday&#039;] = array(

    &#039;label&#039; =&gt; _(&quot;Birthday&quot;),

    &#039;type&#039; =&gt; &#039;monthdayyear&#039;,

    &#039;required&#039; =&gt; false,

    &#039;params&#039; =&gt; array(1900, null, true, &#039;%Y-%m-%d 00:00:00&#039;),

    &#039;required&#039; =&gt; false

);



The result is allways the same</description> 
   <pubDate>Thu, 06 Apr 2006 10:05:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t18624</link> 
  </item> 
   
  <item> 
   <title>Works fine with the following setting for the sql driver, it</title> 
   <description>Works fine with the following setting for the sql driver, it has to be an issue with the ldap driver:



$attributes[&#039;birthday&#039;] = array(

    &#039;label&#039; =&gt; _(&quot;Birthday&quot;),

    &#039;type&#039; =&gt; &#039;monthdayyear&#039;,

    &#039;params&#039; =&gt; array(1900, null, true, &#039;%Y-%m-%d&#039;),

    &#039;required&#039; =&gt; false,

);

</description> 
   <pubDate>Sat, 08 Apr 2006 09:40:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t18677</link> 
  </item> 
   
  <item> 
   <title>I found the code that causes this problem.

It&#039;s inside

hor</title> 
   <description>I found the code that causes this problem.

It&#039;s inside

horde/lib/Horde/date.php



The 

    function timestamp()

    {

        return MakeTime($this-&gt;hour, $this-&gt;min, $this-&gt;sec, $this-&gt;month, $this-&gt;mday, $this-&gt;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



</description> 
   <pubDate>Mon, 01 May 2006 11:51:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t19616</link> 
  </item> 
   
  <item> 
   <title>That&#039;s indeed a nice solution, independently from this speci</title> 
   <description>That&#039;s indeed a nice solution, independently from this specific bug.</description> 
   <pubDate>Mon, 01 May 2006 12:12:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t19619</link> 
  </item> 
   
  <item> 
   <title>&gt; Resolution could be:

&gt; http://www.php.net/mktime#38068


</title> 
   <description>&gt; Resolution could be:

&gt; http://www.php.net/mktime#38068



This does not work for every date! There are discrepancies from 1 day for some dates.



The &quot;adodb_date_time_library&quot; seems to be a better solution for working with dates befor 1.1.1970:



http://www.xaraya.com/documentation/phpxref/xaradodb/adodb-time.inc.php.source.txt



Still testing ... Ralph</description> 
   <pubDate>Mon, 01 May 2006 21:08:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t19628</link> 
  </item> 
   
  <item> 
   <title>Any further testing results?</title> 
   <description>Any further testing results?</description> 
   <pubDate>Thu, 18 May 2006 15:48:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t20346</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve had this bug on two servers which are both under Debian</title> 
   <description>I&#039;ve had this bug on two servers which are both under Debian Sarge 3.1 stable.

Nearly the same configuration and the same bug.

The &quot;adodb_date_time_library&quot; solultion works for both machines.</description> 
   <pubDate>Thu, 18 May 2006 15:55:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t20347</link> 
  </item> 
   
  <item> 
   <title>PHP 5.1 makes this just work. So I&#039;m less inclined to work o</title> 
   <description>PHP 5.1 makes this just work. So I&#039;m less inclined to work on workarounds. Any other opinions here?</description> 
   <pubDate>Mon, 22 May 2006 04:16:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t20462</link> 
  </item> 
   
  <item> 
   <title>&gt; PHP 5.1 makes this just work. 



Even on Windows?</title> 
   <description>&gt; PHP 5.1 makes this just work. 



Even on Windows?</description> 
   <pubDate>Mon, 22 May 2006 07:38:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t20471</link> 
  </item> 
   
  <item> 
   <title>Yup - that&#039;s where I was testing on the plane. I didn&#039;t expl</title> 
   <description>Yup - that&#039;s where I was testing on the plane. I didn&#039;t explicitly test dates after 2038, but dates around 1925 work fine.</description> 
   <pubDate>Mon, 22 May 2006 15:50:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t20489</link> 
  </item> 
   
  <item> 
   <title>Good to know. But I think it would still be nice to have sup</title> 
   <description>Good to know. But I think it would still be nice to have support for these dates before Horde 4.</description> 
   <pubDate>Mon, 22 May 2006 16:22:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t20490</link> 
  </item> 
   
  <item> 
   <title>...with PHP 4 actually.</title> 
   <description>...with PHP 4 actually.</description> 
   <pubDate>Mon, 22 May 2006 16:22:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t20491</link> 
  </item> 
   
  <item> 
   <title>Sure... but how do you want to do that? Use Horde_Date every</title> 
   <description>Sure... but how do you want to do that? Use Horde_Date everywhere? Did we have Horde_Date in Horde 3.0.0?



We&#039;d have to update all of the code for dealing with timestamps to use a hack like adodb&#039;s functions.</description> 
   <pubDate>Mon, 22 May 2006 16:32:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t20492</link> 
  </item> 
   
  <item> 
   <title>&gt; Did we have Horde_Date in Horde 3.0.0?



Yes, and we use </title> 
   <description>&gt; Did we have Horde_Date in Horde 3.0.0?



Yes, and we use it all around in Kronolith. That means that we can use it at least in Horde_Date internally in any other framework packages which would help the original issue of this ticket.</description> 
   <pubDate>Mon, 22 May 2006 21:16:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t20501</link> 
  </item> 
   
  <item> 
   <title>Okay, fallback added as Horde_Date::_mktime, used in Horde_D</title> 
   <description>Okay, fallback added as Horde_Date::_mktime, used in Horde_Date::timestamp</description> 
   <pubDate>Thu, 14 Jun 2007 03:53:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3741#t34070</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
