Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Day 7 repeated twice on October 2005
maxtoroq
Newbie

Posts: 1
Registered: 12/12/2005
Member Is Offline
posted on 12/12/2005 at 04:34 AM Reply With Quote
Day 7 repeated twice on October 2005


anyone with the same issue?
View User's Profile View All Posts By User U2U Member
Alejo
Junior Member

Posts: 3
Registered: 12/26/2005
Location: Chile
Member Is Offline
posted on 12/26/2005 at 08:15 PM Reply With Quote
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).

http://www.neurotools.cl/digitalrider/tigracalendarbug.jpg

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.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 12/28/2005 at 10:18 PM Reply With Quote

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);
View User's Profile View All Posts By User U2U Member
florin.c
Junior Member

Posts: 3
Registered: 3/27/2006
Location: Bucharest
Member Is Offline
posted on 3/27/2006 at 01:13 PM Reply With Quote

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?
View User's Profile View All Posts By User U2U Member
florin.c
Junior Member

Posts: 3
Registered: 3/27/2006
Location: Bucharest
Member Is Offline
posted on 3/27/2006 at 01:13 PM Reply With Quote

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]
View User's Profile View All Posts By User U2U Member
rkrite
Newbie

Posts: 1
Registered: 4/11/2006
Location: Brisbane, Australia
Member Is Offline
posted on 4/11/2006 at 01:35 AM Reply With Quote

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
View User's Profile View All Posts By User U2U Member
florin.c
Junior Member

Posts: 3
Registered: 3/27/2006
Location: Bucharest
Member Is Offline
posted on 4/11/2006 at 01:44 AM Reply With Quote

Same here.

Is anybody watching this forum?
Is there a suport for the free version? If not, say so.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Calendar
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 
Tigra Calendar PRO
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004