[Tickets #3741] NEW: monthdayyear field for birthday before 1970-01-01

bugs@bugs.horde.org bugs at bugs.horde.org
Thu Apr 6 03:05:43 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
 Created By         | horde at public.linkpool.de
 Summary            | monthdayyear field for birthday before 1970-01-01
 Queue              | Turba
 Version            | 2.1
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


horde at public.linkpool.de (2006-04-06 03:05) wrote:

Maybe after installing the latest Horde & Turba updates, the birthday
field can'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
'birthday' => 'mozillaCustom2'

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

# slapcat | grep custom2

1978-05-26
=> mozillaCustom2: 1978-05-26 00:00:00

That's fine.

But a date before 1970-01-01 doesn't work:

1938-05-26
=> mozillaCustom2: 1969-12-31 00:00:00

Any idea?

I've tried:

$attributes['birthday'] = array(
    'label' => _("Birthday"),
    'type' => 'monthdayyear',
    'required' => false,
    'params' => array(1900),
    'required' => false
);

and

$attributes['birthday'] = array(
    'label' => _("Birthday"),
    'type' => 'monthdayyear',
    'required' => false,
    'params' => array(1900, null, true, '%Y-%m-%d'),
    'required' => false
);

and

$attributes['birthday'] = array(
    'label' => _("Birthday"),
    'type' => 'monthdayyear',
    'required' => false,
    'params' => array(1900, null, true, '%Y-%m-%d 00:00:00'),
    'required' => false
);

The result is allways the same




More information about the bugs mailing list