PDA

View Full Version : [OPEN] [FIXED]Date issue



Dumbledore
18 Feb 2011, 2:10 AM
Hi,

it seems there is a problem with the week of Ext.Date:

this runs fine:


var dt = new Date();
console.log(Ext.Date.format(dt, 'd.m.Y'));



When try this an error occure: "ReferenceError: date is not defined"

var dt = new Date();
console.log(Ext.Date.format(dt, 'd.m.Y W'));

mitchellsimoens
18 Feb 2011, 5:22 AM
Try:


dt.format('d.m.Y W')

Dumbledore
18 Feb 2011, 6:37 AM
i try this before i use Ext.Date.

when execute this:



var dt = new Date();
dt.format('d.m.Y W');


firebug told me:

TypeError: dt.format is not a function

mitchellsimoens
18 Feb 2011, 6:47 AM
I'm thinking this is really a bug. In ExtJS3 and Sencha Touch they add functions to the normal Date object and you do it like this:


dt.format(format);

However everything I do isn't working. I'm puzzled now :-?

mschwartz
18 Feb 2011, 7:01 AM
ExtJS 4 is a lot of new looking code (to me).

I'm not seeing how Ext.Date is ever defined, and it's used in quite a few of the Ext.util.Date functions.

evant
19 Feb 2011, 2:16 AM
This has been resolved.

dewile
25 Feb 2011, 7:33 AM
This has been resolved.

How ? I have still the same problem with ext-4.0-pr2

evant
25 Feb 2011, 3:13 PM
Care to post a test case? The above code runs with no problems for me.