Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User debianw's Avatar
    Join Date
    Mar 2012
    Location
    Costa Rica
    Posts
    49
    Vote Rating
    2
    debianw is on a distinguished road

      0  

    Default Ext.Date.parse returns undefined

    Ext.Date.parse returns undefined


    Hi,

    I'm not sure Why I'm receiving undefined after parsing a valid date:

    Code:
     // Returns a correct date:
    Ext.Date.parse("2012-10-02 03:10:04-0400", "c");
    Ext.Date.parse("2012-10-02 03:10:04-04:00", "c")
    
    // Returns undefined
    Ext.Date.parse("2012-10-02 03:10:04-04", "c");
    Seems Ext.Date.parse using "c" format requires the full version of the time offset: -0400 or -04:00.

    Why not -04 ?


    By the way. I'm using Sencha Touch 2.0.1

  2. #2
    Sencha User debianw's Avatar
    Join Date
    Mar 2012
    Location
    Costa Rica
    Posts
    49
    Vote Rating
    2
    debianw is on a distinguished road

      0  

    Default


    Another comment to add.

    Based on the documentation or the API: http://docs.sencha.com/touch/2-0/#!/api/Ext.Date.

    "c" format is based on ISO 8601.

    Based on the Wiki about ISO 8601 about the offset (http://en.wikipedia.org/wiki/ISO_8601).
    it says: "The offset from UTC is given in the format ±[hh]:[mm], ±[hh][mm], or ±[hh]"

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,795
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1

Tags for this Thread

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