Hi.
Running the code further below in the playground illustrates the bug.
Essentially, a date field displays "01 Jan 2010" when
getValue().toString() is "01 Jan 2011". The same for 02 jan 2011. It
runs properly for subsequent dates of 2011.
Essentially, as far as I could check, it seems that whenever the year
starts on thursday or later in the week, for the days before the first
sunday the previous year is displayed, but just in the field, but only
if the format for the date field is "dd MMM YYYY".
Should I file a bug report?
The code:
var doc = this.getRoot();
var field = new qx.ui.form.DateField();
var format = new qx.util.format.DateFormat('dd MMM YYYY');
field.setDateFormat(format);
doc.add(field,
{
left : 100,
top : 50
});
var date = new Date();
date.setMonth(0);
date.setDate(1);
field.setValue(date);
var button1 = new qx.ui.form.Button("alert the date");
doc.add(button1,
{
left : 250,
top : 50
});
button1.addListener("execute", function(e)
{
alert("value in date field: " + field.getValue().toString());
});
br,
flj
--
Fine counsel is confusing, but example is always clear. (Edgar A.
Guest, The Light of Faith)
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel