[turba] monthdayyear field for birthday before 1970-01-01

Ralph Brugger sitecopy at public.linkpool.de
Wed Apr 5 10:44:27 PDT 2006


Hi,

maybe after installing the latest Horde & Turba updates, the birthday
field can't save dates before 1970-01-01

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-

THX,

Ralph



More information about the turba mailing list