Feng Forum

Support => Older versions => Topic started by: Niels on January 12, 2010, 05:51:27 pm

Title: calendar event showing on wrong day
Post by: Niels on 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?
Title: Re: calendar event showing on wrong day
Post by: Niels on 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 :)
Title: Re: calendar event showing on wrong day
Post by: ignacio on January 20, 2010, 12:33:44 pm
When you view the event, by clicking it, what date does it show in the title section?
Title: Re: calendar event showing on wrong day
Post by: Niels on 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.
Title: Re: calendar event showing on wrong day
Post by: ignacio on January 20, 2010, 02:13:28 pm
What browser are you using? Have you tried other browsers?
Title: Re: calendar event showing on wrong day
Post by: Niels on 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.
Title: Re: calendar event showing on wrong day
Post by: Niels on 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?
Title: Re: calendar event showing on wrong day
Post by: daniel_hug on 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?
Title: Re: calendar event showing on wrong day
Post by: Niels on 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
Title: Re: calendar event showing on wrong day
Post by: Niels on 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.
Title: Re: calendar event showing on wrong day
Post by: Niels on 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
Title: Re: calendar event showing on wrong day
Post by: daniel_hug on 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....
Title: Re: calendar event showing on wrong day
Post by: Niels on 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.
Title: Re: calendar event showing on wrong day
Post by: Eduter on 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.
Title: Re: calendar event showing on wrong day
Post by: Niels on 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?
Title: Re: calendar event showing on wrong day
Post by: Eduter on 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.
Title: Re: calendar event showing on wrong day
Post by: waldo2188 on 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
Code: [Select]
if (userSel){
   for (var i = 0; i < userSel.options.length; i++){
      if (userSel.options[i].value == ts.userId){
         userSel.selectedIndex = i;
         break;  
      }
   }
}


Correction
Code: [Select]
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
Title: Re: calendar event showing on wrong day
Post by: Niels on 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 ??
Title: Re: calendar event showing on wrong day
Post by: waldo2188 on March 24, 2010, 11:20:33 am
Right, it's regarding the Eduter's problem
Title: Re: calendar event showing on wrong day
Post by: Roland_Studer on 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ā€¦