Bug of date control

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug of date control

cheney zhao
Hi, Experts,
If I choose the date 1/30/2009, it converts it to 1/2/2009. It seems the bug of magicDateToJSDate function in xforms-min.js. Does someone get the same problem? Will this be fixed in coming version? Thank you for your answer.


cheney
Reply | Threaded
Open this post in threaded view
|

Re: Bug of date control

RdeBeijer
Hi Cheney,

Just fighting the same bug here, problem is in the xforms-min.js file,
just change the function where the cunstruction

var X = new Date();
X.setDate(....);
X.setMonth(....);
X.setYear(...);

Always to
var X = new Date();
X.setYear(...);
X.setMonth(....);
X.setDate(....);

Its in for a couple of places, but make sure to set the year, month and
then the date

Regards Ramon





cheney zhao schreef:
> Hi, Experts,
> If I choose the date 1/30/2009, it converts it to 1/2/2009. It seems the bug
> of magicDateToJSDate function in xforms-min.js. Does someone get the same
> problem? Will this be fixed in coming version? Thank you for your answer.
>
>
> cheney
>  



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Bug of date control

RdeBeijer
In reply to this post by cheney zhao
Hi Cheney,

If you use 3.7 then see the attached js (zipped) there i fixed the order
of setting the date.
I think this should work

Regards Ramon


cheney zhao schreef:
> Hi, Experts,
> If I choose the date 1/30/2009, it converts it to 1/2/2009. It seems the bug
> of magicDateToJSDate function in xforms-min.js. Does someone get the same
> problem? Will this be fixed in coming version? Thank you for your answer.
>
>
> cheney
>  



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

xforms-min.zip (45K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Bug of date control

cheney zhao
Hi Ramon,

It works with attached js you provided. Thank you very much!

Regards,


cheney

RdeBeijer wrote
Hi Cheney,

If you use 3.7 then see the attached js (zipped) there i fixed the order
of setting the date.
I think this should work

Regards Ramon


cheney zhao schreef:
> Hi, Experts,
> If I choose the date 1/30/2009, it converts it to 1/2/2009. It seems the bug
> of magicDateToJSDate function in xforms-min.js. Does someone get the same
> problem? Will this be fixed in coming version? Thank you for your answer.
>
>
> cheney
>  


 

--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Bug of date control

RdeBeijer
no probs

cheney zhao schreef:

> Hi Ramon,
>
> It works with attached js you provided. Thank you very much!
>
> Regards,
>
>
> cheney
>
>
> RdeBeijer wrote:
>  
>> Hi Cheney,
>>
>> If you use 3.7 then see the attached js (zipped) there i fixed the order
>> of setting the date.
>> I think this should work
>>
>> Regards Ramon
>>
>>
>> cheney zhao schreef:
>>    
>>> Hi, Experts,
>>> If I choose the date 1/30/2009, it converts it to 1/2/2009. It seems the
>>> bug
>>> of magicDateToJSDate function in xforms-min.js. Does someone get the same
>>> problem? Will this be fixed in coming version? Thank you for your answer.
>>>
>>>
>>> cheney
>>>  
>>>      
>>  
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>>    
>
>  


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws