maxtoroq
Newbie
Posts: 1
Registered: 12/12/2005
Member Is Offline
|
| posted on 12/12/2005 at 04:34 AM |
|
|
Day 7 repeated twice on October 2005
anyone with the same issue?
|
|
|
Alejo
Junior Member
Posts: 3
Registered: 12/26/2005
Location: Chile
Member Is Offline
|
| posted on 12/26/2005 at 08:15 PM |
|
|
Same issue
Yes, I have the same problem.
It seems to be a problem on the method "next day" is calculated: the use "first date" of calendar plus 24 hrs., plus 24 hrs... etc... to make the
complete view of the calendar.
Depending on the time configuration of your Time Zone, daylight time savings may affect this, because when you try to add 24 hrs to october 7, 2005...
it became october 7, 23:00:00 hrs. not october 8, 00:00:00 hrs.
Here you can see a screenshot (calendar was translated to spanish).

The solution (I have not implemented this), changing the method used to calculate the next day to be "draw" into the calendar window from adding 24
hrs, to adding one "day" to the date or checking that the difference between the first and the second is 24 hrs or "adjust" it if not.
This is the only issue I found on the component, it's very helpfull in my in-house proyects.
Keep up the good work
From the south of the world (Chile), my best wishes to the development team.
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 12/28/2005 at 10:18 PM |
|
|
Inside the loop that prints the calendar's greed we increment the date by a day (not by 24 hours) leaving the details to the implementation of the
internal date object:
dt_current_day.setDate(dt_current_day.getDate()+1);
So the problem is somewhere in the way the scripting engine handles the otherwice straightforward operation.
We can't reproduce the problem without knowing the conditions (time zone, current date and time, date to which calendar is set) however we can
suggest somewhat lame patch to fix this prolem:
var dt_last_current = dt_current_day;
while (dt_current_day.getDate() == dt_last_current.getDate())
dt_current_day.setDate(dt_current_day.getDate()+1);
|
|
|
florin.c
Junior Member
Posts: 3
Registered: 3/27/2006
Location: Bucharest
Member Is Offline
|
| posted on 3/27/2006 at 01:13 PM |
|
|
I have the same problem with a seleted date, day 25 March 2006 is repating two times. But if is not selected it is ok.
How do i put the patch you wrote?
|
|
|
florin.c
Junior Member
Posts: 3
Registered: 3/27/2006
Location: Bucharest
Member Is Offline
|
| posted on 3/27/2006 at 01:13 PM |
|
|
I have the same problem with a seleted date, day 25 March 2006 is repating two times. But if is not selected it is ok.
How do i put the patch you wrote?
[sorry for postig twice]
|
|
|
rkrite
Newbie
Posts: 1
Registered: 4/11/2006
Location: Brisbane, Australia
Member Is Offline
|
| posted on 4/11/2006 at 01:35 AM |
|
|
| Quote: | Originally posted by tigra
Inside the loop that prints the calendar's greed we increment the date by a day (not by 24 hours) leaving the details to the implementation of the
internal date object:
dt_current_day.setDate(dt_current_day.getDate()+1);
So the problem is somewhere in the way the scripting engine handles the otherwice straightforward operation.
We can't reproduce the problem without knowing the conditions (time zone, current date and time, date to which calendar is set) however we can
suggest somewhat lame patch to fix this prolem:
| Code: | var
dt_last_current = dt_current_day;
while (dt_current_day.getDate() == dt_last_current.getDate())
dt_current_day.setDate(dt_current_day.getDate()+1); |
|
Hi,
I am also finding this problem.
I have tried to fix it with this piece of code, but my calendar just loops.
Any ideas?
Thanks
|
|
|
florin.c
Junior Member
Posts: 3
Registered: 3/27/2006
Location: Bucharest
Member Is Offline
|
| posted on 4/11/2006 at 01:44 AM |
|
|
Same here.
Is anybody watching this forum?
Is there a suport for the free version? If not, say so.
|
|
|