PDA

View Full Version : [CLOSED] Dates not handled properly



mankz
4 Apr 2014, 2:02 AM
Ext.define('MyClass', {
extend : 'Ext.data.Model',

fields : [
{ name : 'foo', type : 'date', dateFormat : 'Y-m-d' }
]
})

var rec = new MyClass({
foo : '2011-12-24'
})
console.log(rec.get('foo')) // Ext 5 gives a string, Ext 4 gives a real date.

Still open in the latest beta

evant
4 Apr 2014, 2:16 AM
Can't reproduce: https://fiddle.sencha.com/#fiddle/4po