PDA

View Full Version : TimeField format problem



Digital God
22 Jul 2008, 9:30 PM
i'm trying to change time format.
when i use 'g:i A' - it works fine, but when i set 'H:i' or any other - i always get 00:00 value.

here is my code


{
xtype: 'timefield',
name: 'time',
id: 'time',
hideLabel: true,
tpl: Tpl.timeTpl,
format: 'H:i',
width: 100
}


here is my Tpl.timeTpl



Tpl.timeTpl = new Ext.XTemplate('<tpl for="."><div class="x-combo-list-item">{text}</div></tpl>');