[horde] Setting default date format.

Arjen de Korte arjen+horde at de-korte.org
Thu Sep 28 19:20:43 UTC 2017


Citeren SZÉPE Viktor <viktor at szepe.net>:

> Idézem/Quoting Vijay Sankar <vsankar at foretell.ca>:
>
>> Sent from my iPhone
>>> On Sep 28, 2017, at 12:13, P.V.Anthony <anthony at mindmedia.com.sg> wrote:
>>>
>>> Hi,
>>>
>>> I am trying to set the default date format for horde.
>>>
>>> In the file horde/config/prefs.local.php I added the following but  
>>> it does not work.
>>>
>>> // set display dates
>>> $_prefs['date_format'][value] = '%d/%m/%Y';
>>> $_prefs['date_format_mini'][value] = '%d/%m/%Y';
>>>
>>> I also tried the following but does not work.
>>>
>>> // set display dates
>>> $_prefs['date_format']= array( 'value' => '%d/%m/%Y' );
>>> $_prefs['date_format_mini']= array( 'value' => '%d/%m/%Y' );
>
> It has to be set in /config/prefs.local.php
> You can see examples in the top comment of prefs.php
>
> Maybe adding quotes helps
>
> $_prefs['date_format_mini']['value'] = '%d/%m/%Y';

Also note that setting a default will only work for new users.  
Existing users will have their preferences saved already and will not  
see any changes you make in config/prefs.local.php. You'd need to  
remove the value for the respective fields in the database *or* lock  
the value (but then users will not be able to change them either).




More information about the horde mailing list