Summary | Embedded views fall back to american date and time format |
Queue | Kronolith |
Queue Version | 4.2.15 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | fer.grub (at) yahoo (dot) de |
Created | 02/29/2016 (3416 days ago) |
Due | |
Updated | 03/03/2016 (3413 days ago) |
Assigned | 02/29/2016 (3416 days ago) |
Resolved | 03/02/2016 (3414 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
code: The 'first_week_day' pref in kronolith/config/prefs.php.
Likewise, there are date/time display format prefs local to kronolith
as well. This was for legacy reasons (some of the kronolith prefs
predated the more global horde prefs and this is changed in our Horde
6 code).
The date formats in the embedded views of the guest user are correct, BUT:
After I click on one of the links in the embedded view, that opens the
corresponding calendar view, and I switch to the months view, than
this view is displayed with Sunday as first day of the week.
But i have set in prefs.local.php:
$_prefs['first_week_day']['value'] = '1';
Sorry, I cannot consider this as expected behaviour. Anyway the above
setting seems to have no effect in the months view.
$_prefs['first_week_day']['value'] = '1';
$_prefs['twentyFour']['value'] = true;
Is this not enough?
prefs. Nothing else, not date format, not language etc...
german format (24 hours).
But the first day of week remains sunday.
$_prefs['first_week_day']['value'] = '1';
Is this option not correct?
$_prefs['first_week_day']['value'] = '1';
$_prefs['twentyFour']['value'] = true;
Is this not enough? Why do this settings have no effect?
Are there additional options necessary?
Sorry, don't understand your suggestion concerning the session
cache. Could you please explain that more specific?
the default values of these prefs were changed (by editing
prefs.local.php) you need to remove the browser's cookie, or otherwise
force a new session.
american format.
Now I open a second browser tab and log in as user. Now all date
values are in german format as expected.
Now I switch to the first tab, where I started editing as guest. Now
also in this view all values are displayed in the local format.
Now I log out on the second browser window.
Suddenly all date values on the other browser window fall back into
american format.
How can this bahaviour be changed?
Sorry, don't understand your suggestion concerning the session cache.
Could you please explain that more specific?
State ⇒ Not A Bug
session cache on the server or remove the cookie associated with the
guest session on the browser.
the default preference then load the page, it still shows the old
value. If I log in, then immediately log out, then load the embedded
page, it shows the correct value - regardless of what the user who
just logged in has the pref set to.
State ⇒ Assigned
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ Embedded views fall back to american date and time format
Type ⇒ Bug
Priority ⇒ 2. Medium
The embedded calendar views do not display the local time format.
All times are given in american format, (12 hours), first day of week
is sunday and so on.
But after login on the horde server the calendar events are displayed
in the right format.
I tried the following options in /horde/config/prefs.local.php
$_prefs['twentyFour']['value'] = true;
$_prefs['first_week_day']['value'] = '1';
But that did not change anything on the calendar views on my website.