date picker bug

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

date picker bug

Einar Moos
Hi everyone,
 
We just discovered a curious bug with the date picker which is used in French on our production forms.
 
If you type the birth date 5.4.1963 it automatically jumps to 5.5.1963. If you use the date picker to select the first date, the date is transformed to 1963-05-05.
 
We are using the nightly build 20090324.
 
Thanks if anyone has a solution...
 
-- einar
 
 


--
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: date picker bug

Alessandro Vernet
Administrator
Einar,

On Mar 31, 2009, at 3:58 AM, Einar Moos wrote:

> We just discovered a curious bug with the date picker which is used  
> in French on our production forms.
>
> If you type the birth date 5.4.1963 it automatically jumps to  
> 5.5.1963. If you use the date picker to select the first date, the  
> date is transformed to 1963-05-05.
>
> We are using the nightly build 20090324.

This reminds me of an issue that we had at some point, and which, I  
thought, was fixed. Could you submit  a simple example that runs in  
the sandbox and shows the problem?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
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: Re: date picker bug

RdeBeijer
hi Alessandro/Einar,

There is (or was) a bug in the javascript file xforms-min.js
the cunstruction

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

Should be changed to:
var X = new Date();
X.setYear(...);
X.setMonth(....);
X.setDate(....);

Not sure if this also fixes the bug from Einar

regards Ramon




Alessandro Vernet schreef:

> Einar,
>
> On Mar 31, 2009, at 3:58 AM, Einar Moos wrote:
>
>> We just discovered a curious bug with the date picker which is used
>> in French on our production forms.
>>
>> If you type the birth date 5.4.1963 it automatically jumps to
>> 5.5.1963. If you use the date picker to select the first date, the
>> date is transformed to 1963-05-05.
>>
>> We are using the nightly build 20090324.
>
> This reminds me of an issue that we had at some point, and which, I
> thought, was fixed. Could you submit  a simple example that runs in
> the sandbox and shows the problem?
>
> Alex
> --
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> Personal Blog: http://avernet.blogspot.com/
> Twitter - http://twitter.com/avernet
>


--
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: Re: date picker bug

Alessandro Vernet
Administrator
On Apr 2, 2009, at 10:32 PM, Ramon de Beijer wrote:

> hi Alessandro/Einar,
>
> There is (or was) a bug in the javascript file xforms-min.js
> the cunstruction
>
> var X = new Date();
> X.setDate(....);
> X.setMonth(....);
> X.setYear(...);
>
> Should be changed to:
> var X = new Date();
> X.setYear(...);
> X.setMonth(....);
> X.setDate(....);
>
> Not sure if this also fixes the bug from Einar
Ah, yes, now I remember! That was fixed in the code on September 15,  
2008, and I put a link to the bug below for reference. So the problem  
shouldn't be happening anymore in nightly builds. Einar, are you  
saying that you still see this behavior with nightly builds?

http://forge.ow2.org/tracker/index.php?func=detail&aid=311142&group_id=168&atid=350207

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
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: Re: Re: date picker bug

Einar Moos
Hi Alessandro,

Indeed it seems to occur only on an older version of Orbeon on a production server. We are migrating to new servers on which we deployed the latest nightly built where I cannot reproduce that bug.

Thanks,

-- einar

On Fri, Apr 3, 2009 at 10:33 PM, Alessandro Vernet <[hidden email]> wrote:
On Apr 2, 2009, at 10:32 PM, Ramon de Beijer wrote:

hi Alessandro/Einar,

There is (or was) a bug in the javascript file xforms-min.js
the cunstruction

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

Should be changed to:
var X = new Date();
X.setYear(...);
X.setMonth(....);
X.setDate(....);

Not sure if this also fixes the bug from Einar

Ah, yes, now I remember! That was fixed in the code on September 15, 2008, and I put a link to the bug below for reference. So the problem shouldn't be happening anymore in nightly builds. Einar, are you saying that you still see this behavior with nightly builds?

http://forge.ow2.org/tracker/index.php?func=detail&aid=311142&group_id=168&atid=350207


Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: date picker bug

Alessandro Vernet
Administrator
On Apr 3, 2009, at 2:25 PM, Einar Moos wrote:

> Indeed it seems to occur only on an older version of Orbeon on a  
> production server. We are migrating to new servers on which we  
> deployed the latest nightly built where I cannot reproduce that bug.

Excellent. Thank you for confirming that.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
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