Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Jan 2012
    Vote Rating
    lucarossi is on a distinguished road


    Default TimeField don't consider the seconds and milliseconds

    TimeField don't consider the seconds and milliseconds

    Ext version tested:
    Ext 4.2.2 - bug is present
    Ext 4.2.1 - bug is NOT present

    Browser versions tested:
    Chrome 30 - fails
    FF25 (firebug 1.12.4 installed) - fails
    IE9 - fails


    When i use a timefield like this:

    var eventTime = Ext.create('Ext.form.field.Time',{
        format: 'G:i:s',
        submitFormat: 'Hisu',
        fieldLabel: 'Time',
        id : 'eventTime_id',
        name : 'eventTime',
        labelWidth: 30,
        inputWidth: 70,
        labelAlign: 'right'});
    and i try to set value:

    var timeValue = '112404';
        var dateValue= Ext.Date.parse('20130101', 'Ymd');
        dateValue= Ext.Date.clearTime(dateValue);
    the seconds becames '0'.

    I fix the problem modifying the code of setInitDate method and its use in setValue method, like this:

    getInitDate: function(hours, minutes, seconds, milliseconds) {
            var parts = this.initDateParts;
            return new Date(parts[0], parts[1], parts[2], hours || 0, minutes || 0, seconds || 0, milliseconds || 0);    
    setValue: function(v) {
            if (Ext.isDate(v)) {
                value = this.getInitDate(v.getHours(), v.getMinutes(),v.getSeconds(),v.getMilliseconds());
            return this.callParent([v]);
    now works good for my needs but i'm not sure it's a real bugs and if my solution is ok. can you help me?

    All the best,

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Vote Rating
    Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough Gary Schlosberg is a jewel in the rough



    Ext.form.field.Time doesn't support seconds or milliseconds, so I wouldn't call it a bug. I'm surprised this was working for you in 4.2.1. If you need to support that level of detail, then I believe overriding with a change like yours is your best option.
    Get on the Fast Track with Sencha Training http://sencha.com/training

    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi