PDA

View Full Version : [FIXED] TimeField parsing / formatting problem



htammen
24 Feb 2011, 6:24 AM
maybe this is already fixed with this issue but it seems to be slightly different:
http://www.sencha.com/forum/showthread.php?124954-FIXED-DateField-parsing-formatting-problem

I have a TimeField at a form

{
xtype: 'timefield',
fieldLabel: 'Beginn',
name: 'startTime',
boxMaxWidth: 100,
format: 'H:i',
altFormats: 'c'
},


The startTime value comes from the server as startTime: "2009-07-12T05:45:00Z".
I would expect to see "05:45" in the TimeField. But I see "00:07"

When I use "Y-m-d\\TH:i:s\\Z" everything is fine despite of the fact that the timezone is not used while parsing.

htammen
26 Feb 2011, 2:19 PM
This is not fixed with PR2.
The timefield parsing should also be the same as the datefield parsing as mentioned above. See this thread (http://www.sencha.com/forum/showthread.php?124954-FIXED-DateField-parsing-formatting-problem) for details

Jamie Avins
28 Feb 2011, 8:13 AM
We'll address this for the next release.

evant
1 Mar 2011, 6:57 PM
This should be resolved.