Rank: Newbie Groups: Member
Joined: 10/27/2008 Posts: 4
|
Hi,
Found a strange thing when using the setValidDateRane on a calendar object.
The example is as follows:
var tCal = eo_GetObject(oCal);
var tDate1 = new Date(); //MinDate var tDate2 = new Date(); //MaxDate
tDate1.setFullYear(2007,10,15); tDate2.setFullYear(2008,10,15);
tCal.setValidDateRange(tDate1,tDate2);
Make sure you set the Date Format to 'dd/MM/yyyy'
When you use the values below for your Calendar component and then use the DatePicker function to enter a date manually (so do not use the calendar). Then you manually try to enter the following date: 29/02/2008 (which is Feb 2nd, 2008), you will see that the date showing will be 15/02/2008.
I believe this is a bug in the setValidDateRange function.
Can you please confirm?
UPDATE: If you change tDate1 to tDate1.setFullYear(1990,1,1) and then try to enter the date above (29/02/2008) again, you will see that this time the date return is correct.
rvaneynd
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Thank you very much for the information. We will look into it and get back to you as soon as possible.
Thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Which version are you using?
Thanks
|
Rank: Newbie Groups: Member
Joined: 10/27/2008 Posts: 4
|
EO Support,
I have tried 2 version: * 6.0.21.2 * 6.0.44.2
Regards, rvaneynd
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have posted a new build that fixed this issue. Please see your private message for download location.
Thanks!
|