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
    48
    Vote Rating
    1
    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
    48
    Vote Rating
    1
    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
    35,704
    Vote Rating
    751
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar