You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member minneyar's Avatar
    Join Date
    Apr 2009
    Location
    San Antonio, TX
    Posts
    35
    Vote Rating
    0
    minneyar is on a distinguished road

      0  

    Default Date class can't parse ordinal days ('z')

    Date class can't parse ordinal days ('z')


    The format chart for the "Date" class indicates that "z" can be used to handle the ordinal day (that is, the day of the year from 0 to 365). It seems like Ext can print the "z" format correctly, but not parse it. For example, this works fine:

    Code:
    (new Date()).format('z')
    Running that today (April 18, 2012) prints "108".

    But this does not work:

    Code:
    Date.parseDate('108', 'z')
    It simply returns a Date object set to the first day of the year.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,637
    Vote Rating
    400
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Thanks you for the report: EXTJSIII-46

    Regards,
    Scott.

  3. #3
    Ext JS Premium Member minneyar's Avatar
    Join Date
    Apr 2009
    Location
    San Antonio, TX
    Posts
    35
    Vote Rating
    0
    minneyar is on a distinguished road

      0  

    Default


    Just for reference, I've discovered that Ext can parse ordinal days if it is set to strict mode. For example, this works:

    Code:
    Date.parseDate('108', 'z', true)
    Of course, while that works in some situations, it can't be relied on in situations where Ext is internally parsing dates in non-strict mode, such as the date picker widget...

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