Feng Forum

Support => Older versions => : Niels January 12, 2010, 05:51:27 PM

: calendar event showing on wrong day
: Niels January 12, 2010, 05:51:27 PM
Sometimes an event shows on the wrong date. The event is currently on the 12th at 17:00 but it shows on wednesday the 13th at 17:00. doesn't matter if I drag it to the right place, or go to edit mode and re-save the event. it will show on 13th. if I put the date on the 13th it shows correctly on the 13th (not on the 14th as you might expect)

Any ideas?
: Re: calendar event showing on wrong day
: Niels January 18, 2010, 12:14:05 PM
I have an update here,
when I enter another event on the same date and around the same time (partly overlapping), it shows the first event correctly! when I remove this second event again, the first event shifts back to the wrong date...
Like it magnetically draws the other event into the right place :)
: Re: calendar event showing on wrong day
: ignacio January 20, 2010, 12:33:44 PM
When you view the event, by clicking it, what date does it show in the title section?
: Re: calendar event showing on wrong day
: Niels January 20, 2010, 02:06:47 PM
absolutely the right date. it's just the view in the calendar itself.
we've got the same problem on several computers, so it seems not realted to one issue.
: Re: calendar event showing on wrong day
: ignacio January 20, 2010, 02:13:28 PM
What browser are you using? Have you tried other browsers?
: Re: calendar event showing on wrong day
: Niels January 20, 2010, 02:14:54 PM
Yes this is tested on osx & windows. browser we currently use are chrome 3 (OSX) & chrome 4 beta (windows) and Firefox 3.5.7 on both platforms.
: Re: calendar event showing on wrong day
: Niels February 04, 2010, 12:16:30 PM
It seems this only happens with one person. When he enters an event it will shop up wrong. he is using the same os and browser as the rest of us.
could there be some other weird setting which makes this possible?
: Re: calendar event showing on wrong day
: daniel_hug February 05, 2010, 06:10:51 AM
did you check the timezone settings of the useraccount?
isn't there a autodetection of the user timezone?
: Re: calendar event showing on wrong day
: Niels February 05, 2010, 07:18:31 AM
I tried setting it to manual. but the system gives me an error.
Error:
Query failed with message 'Duplicate entry '2-2' for key 1'

I'll post this in the bug section as well, and then I'll be able to try it.
Thx
: Re: calendar event showing on wrong day
: Niels February 10, 2010, 09:14:28 AM
I'm having the same problem as my colleague when adding an event:
adding a repeating event on monday and it shows the appointment on tuesday. correct time and nicely repeating. In edit event it shows monday, so entry is correct.
Now some more (new) info:
in day view it doesn't show at all and in Month view they show correctly on Monday!

Now when I add a new event on the same time and day, it shows the first event correctly, and this new event on Tuesday. So it kinda pushes the first event 'in place'. BUT they both take only half the space in the agenda, like they are on the same day and need to share the space for that timeslot! The event on Tuesday ( wrong day) is half covered by an appointment that is already on Tuesday, so it doesn't behave like it should be on Tuesday (which is correct, it should be on Monday...)

In the screenshot you see IN: NG&FV which is the first event, and on tuesday 'test', bot scheduled for monday 9:30-10:30. Now when I delete 'test', IN:NG&FV moves to tuesday, takes full width and also half covered by the event of 9:00.

Hope this helps some more.
: Re: calendar event showing on wrong day
: Niels February 24, 2010, 08:11:02 AM
Seems I am responding mostly to my own posts.
Anyone from Feng trying to shed some light on this?

The posts that appear on the wrong date are always initially set on Monday. I tried setting the monday/sunday as first day but that doesn't solve the problem
: Re: calendar event showing on wrong day
: daniel_hug February 24, 2010, 12:09:06 PM
Hi niels,
did you took al look into the database. what are the stored values, do they corrrespond to the values shown in the application.
did you try to run a test instance of fo and reproduce the problem there.
is the server date/time set correctly?

just some ideas from my side....
: Re: calendar event showing on wrong day
: Niels February 24, 2010, 12:18:13 PM
I don't know where to look in the DB, but the values in the event are correct, it's only in displaying that it's incorrect.
: Re: calendar event showing on wrong day
: Eduter March 18, 2010, 07:28:15 PM
Have you fixed the problem ?
I've installed Feng Office and some colleagues have a problem similar just when then want to modify a timeslot in the panel "Times". The date changes automatically to the date of the day. They tried on Linux and Windows XP, on IE7, Firefox 3 and Chrome 3.
: Re: calendar event showing on wrong day
: Niels March 21, 2010, 09:28:09 AM
Nop, no results yet. didn't have time to look into it to be frank.
Hopefully someone from Feng is looking into it?
: Re: calendar event showing on wrong day
: Eduter March 23, 2010, 07:12:24 PM
I can complete the problem we have.
On Feng Office 1.6.2, with my colleagues without an Administrator, each time they want to modify a timeslot in the panel "Times",  the date changes automatically to the date of the day. It does not happen on Administrator profiles.
I've tested on Feng 1.7 Beta, the problem is still there.
: Re: calendar event showing on wrong day
: waldo2188 March 24, 2010, 10:33:32 AM
Hello,

This issue is caused by an access to an inexistant "userSel.options" property.

It's just one line of code to add in the main.js (public/assets/javascript/og/time/main.js) in the function EditTimeslot at the line 216.

We must add a condition to test if the property exists.

before
:
if (userSel){
   for (var i = 0; i < userSel.options.length; i++){
      if (userSel.options[i].value == ts.userId){
         userSel.selectedIndex = i;
         break;  
      }
   }
}


Correction
:
if (userSel){
    if(userSel.options) {
        for (var i = 0; i < userSel.options.length; i++){
            if (userSel.options[i].value == ts.userId){
                userSel.selectedIndex = i;
                break;  
            }
        }
    }
}

Regards
: Re: calendar event showing on wrong day
: Niels March 24, 2010, 10:52:43 AM
I would like to keep this post on topic.
I  started this with a calendar problem, not a time tab problem.

waldo2188, your solution is regarding the problem Eduter has, or regarding the calendar not showing the event on the proper day ??
: Re: calendar event showing on wrong day
: waldo2188 March 24, 2010, 11:20:33 AM
Right, it's regarding the Eduter's problem
: Re: calendar event showing on wrong day
: Roland_Studer April 15, 2010, 09:07:28 AM
I have a similar problem, where a date, in one specific timeslot is shown on the wrong date in the calendar view.

The date shown in the details is correct, I suspect this is some renderding problem.
It only happens with very specific setting, in my case 12:15 thursday, duration 1:45, only in one workspace. very strangeā€¦ if I change it to 12:16 it's shown on friday instead on thursday, with 12:17 it's shown correcltly, very very strangeā€¦