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,927
    Vote Rating
    443
    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

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