6.0.0-beta1
7/7/25

[#14274] Embedded views fall back to american date and time format
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

History
03/03/2016 02:57:16 AM Michael Rubinsky Comment #10 Reply to this comment

[Show Quoted Text - 11 lines]
Kronolith also has it's own value of this preference in current stable 
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).

03/02/2016 09:22:41 PM fer (dot) grub (at) yahoo (dot) de Comment #9 Reply to this comment
Please allow me to explain what I consider to be possibly a bug:

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.
03/02/2016 07:04:16 PM Michael Rubinsky Comment #8 Reply to this comment
I set this two values in /horde/config/prefs.local.php:
    $_prefs['first_week_day']['value'] = '1';
    $_prefs['twentyFour']['value'] = true;
Is this not enough?
These will only change the first day of week and the twenty four hour 
prefs. Nothing else, not date format, not language etc...
Why do this settings have no effect?
I already explained this.
Are there additional options necessary?
Please use the mailing list for further support since this is not a bug.
03/02/2016 06:54:21 PM fer (dot) grub (at) yahoo (dot) de Comment #7 Reply to this comment
Now I made one more test, and oh: The date values now are displayed in 
german format (24 hours).
But the first day of week remains sunday.

    $_prefs['first_week_day']['value'] = '1';

Is this option not correct?

03/02/2016 06:39:55 PM fer (dot) gru (at) yahoo (dot) de Comment #6 Reply to this comment
I set this two values in /horde/config/prefs.local.php:
    $_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?
03/02/2016 06:09:42 PM Michael Rubinsky Comment #5 Reply to this comment

[Show Quoted Text - 11 lines]
Then the default value for these prefs were not changed in prefs.local.php
How can this bahaviour be changed?
Sorry, don't understand your suggestion concerning the session 
cache. Could you please explain that more specific?
For guest users preference values are cached in the guest session. If 
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.
03/02/2016 06:01:36 PM fer (dot) gru (at) yahoo (dot) de Comment #4 Reply to this comment
If I edit the calendar as guest, all the date values appear in 
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?
03/02/2016 04:31:18 PM Michael Rubinsky Comment #3
State ⇒ Not A Bug
Reply to this comment
Yup. This is due to session caching. Not a bug. Either clear the 
session cache on the server or remove the cookie associated with the 
guest session on the browser.
03/02/2016 04:02:46 PM Michael Rubinsky Comment #2 Reply to this comment
I think this is some sort of preference caching going on. If I change 
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.
02/29/2016 03:15:42 PM Michael Rubinsky Assigned to Michael Rubinsky
State ⇒ Assigned
Priority ⇒ 1. Low
 
02/29/2016 03:14:06 PM fer (dot) grub (at) yahoo (dot) de Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ Embedded views fall back to american date and time format
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
I tried to embed some calendar views into my web project.

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.

Saved Queries