[horde] Setting date and time preferences

Jan Schneider jan at horde.org
Tue Apr 21 19:12:01 UTC 2015


Zitat von Mauricio J T Tecles <mtecles at biof.ufrj.br>:

> Preferences are set on first login, changing prefs.local.php will  
> afect only new users. So change your preferences using the menu.
> Mauricio
>
>
> Enviado por Samsung Mobile
>
> -------- Mensagem original --------
> Subject: [horde] Setting date and time preferences
> De: Jens Wahnes <wahnes at uni-koeln.de>
> Para: horde at lists.horde.org
> CC:
>
> Hi,
>
> I'm trying to figure out how the date and time related preferences work
> exactly in Horde, but so far, it's still unclear to me. Is there some
> documentation about this topic available that I missed? Browsing the
> wiki on wiki.horde.org didn't yield anything useful.
>
> First of all, some of the (default) values seem to be set according to
> the current locale (depending on the language chosen on login), but
> others aren't. For instance, the default date format seems to be set
> depending on the locale, but the time format isn't (i.e., it remains
> with 12 hour time even with locales that would ordinarily use 24 hour
> time). Is that on purpose?

Yes. While the date format preference can take arbitrary format  
specifiers (that don't even need to actually display a date), the  
dates in the dynamic interface of Kronolith need to be parseable. Thus  
we need to make sure to have a format that we actually can read back.  
Otherwise we would have to use date pickers like in the basic view.

> Also, it seems I can't set default preferences that affect these values
> like the way I can do it for other values.
> That is, putting
>
> $_prefs['timezone']['value'] = "Europe/Berlin";
> $_prefs['twentyFour']['value'] = true;
>
> into horde/config/prefs.local.php seems to change nothing at all, while
> individual user's preferences with these values do work.
>
> So, what's the right way to set defaults for these values?

See the other reply

> Finally, Horde's "first_week_day" preference does not seem to have any
> effect on the way the calendar is displayed in Kronolith. Only
> Kronolith's own preference called "week_start_monday" does actually
> influence the way the calendar is displayed. Is that on purpose or did
> it just not occur to anybody before? From a user's perspective, I think
> having a default for Kronolith's "week_start_monday" that essentially
> says "Use Horde's settings" would be easier to manage.

Horde's preference has been added later, because this global setting  
was required at a later time in history than Kronolith's. At one  
point, probably H6 is a good candidate, we might remove that old  
Kronolith setting. But for now it's still needed for backward  
compatibility reasons.


-- 
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject



More information about the horde mailing list