[turba] Birthday before 1970 not saved
Jan Schneider
jan at horde.org
Sun Jul 16 10:13:42 PDT 2006
Zitat von Wim <wim at gekkos.org>:
> Jan Schneider schreef:
>> Zitat von Wim <wim at gekkos.org>:
>>
>>> Hello,
>>> I have insert a field called "birtday" in turba. it is right shown
>>> in the adressbook, but when I try to save a date before 01
>>> January 1970I got 0000-00-00 in the database field.
>>> A date after 01 January 1970 works fine.
>>>
>>> In attributes.php I have the field configured like:
>>>
>>> $attributes['birthday'] = array(
>>> 'label' => _("Birthday"),
>>> 'type' => 'monthdayyear',
>>> 'params' => array(1900, null, true, '%Y-%m-%d'),
>>> 'required' => false,
>>> );
>>>
>>> Anyone an idea why this happen??
>>
>> Are you sure that you are running the latest Turba version and that
>> you have a DATE field for birthdays in your database?
>>
>> Jan.
>>
>
>
> Yes, I am running Horde 3.1.1 qnd Turba 2.1.1
> I have a DATE field for birthdays
>
> +------------------------+--------------+------+------+---------+-------+
> | Field | Type | Null | Key | Default | Extra |
> +------------------------+--------------+------+------+---------+-------+
> | object_birthday | date | YES | None | NULL |
> |
>
> Dates after 01/01/1970 I can save.
No idea then, it works fine here.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the turba
mailing list