[turba] Date field formatting

Jan Schneider jan at horde.org
Fri Sep 12 15:44:43 UTC 2008


Zitat von Arjen de Korte <arjen+horde at de-korte.org>:

> Citeren "Jan Schneider" <jan at horde.org>:
>
>>> Currently, after searching a contact in an address book, their  
>>> birth date is displayed as 'DD-MM-YY' instead of the 'YYYY-MM-DD'  
>>> format that I configured in the global options. The dates are  
>>> stored as 'YYYY-MM-DD' in the database alright, so it looks like  
>>> the formatting is deliberately changed.
>>
>> Dates in turba fields can't be configured individually, you can set  
>> a global default in config/attributes.php though. The default  
>> setting is using the default format of the user's locale.
>
> In Horde, the 'date_format' is set to "%Y-%m-%d". Since IMP uses the  
> 'date_format' I expected that Turba also would (which it doesn't).

Actually, I don't see a reason why we shouldn't do this. Just change  
the 'format_out' setting to $GLOBALS['prefs']->getValue('date_format').

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the turba mailing list