PDA

View Full Version : [DUP][FIXED]Ext.util.Date.format error



htammen
24 Feb 2011, 1:38 AM
Ext.util.Date.format throws an error when using pattern 'd.m.Y H:i:s O' or 'd.m.Y H:i:s P'.
The pattern 'd.m.Y H:i:s Z' works fine.

Does not work:

var d = Ext.util.Date.parseDate('2009-11-08T23:00:00Z', 'c', true);
var str = Ext.util.Date.format(d,'d.m.Y H:i:s O');
console.log(str);
ReferenceError: date is not defined

Works fine:

var d = Ext.util.Date.parseDate('2009-11-08T23:00:00Z', 'c', true);
var str = Ext.util.Date.format(d,'d.m.Y H:i:s Z');
console.log(str);
09.11.2009 00:00:00 3600

evant
24 Feb 2011, 1:45 AM
These have already been resolved: http://www.sencha.com/forum/showthread.php?124419-FIXED-Date-issue