PDA

View Full Version : [FIXED]Ext.DatePicker Bug



prographica
14 Oct 2010, 9:13 PM
Sencha Touch version tested:

0.9 rev 7


Platform tested against:

iOS 3.x
iOS 4
Android 2.1
Android 2.2


Description:

Ext.DatePicker Bug - When setting up the value into Ext.DatePicker using Config Object by JavaScript Date Object, initComponent does convert day: value.getDay() => this is value of day (Monday, Tuesday ...). This should be da: value.getDate().


Test Case:



if (this.value) {
var value = this.value;

if (Ext.isDate(value)) {
console.debug(value.getDay());
this.value = {
day : value.getDay(), <= wrong!
year: value.getFullYear(),
month: value.getMonth() + 1
};
} else if (Ext.isObject(value)) {
this.value = value;
};
}
Ext.DatePicker.superclass.initComponent.call(this);

evant
14 Oct 2010, 9:25 PM
Thanks, just fixed this up.

prographica
14 Oct 2010, 9:39 PM
Thank you for your report!