Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    21
    Vote Rating
    0
    nkremer is on a distinguished road

      0  

    Default Date.parseDate doesn't parse ISO-8601 correctly.

    Date.parseDate doesn't parse ISO-8601 correctly.


    Hello,

    I have found an issue with Date.parseDate where it parses an ISO-8601 string incorrectly. This specifically happens when the following is true:

    1.) The ISO 8601 string is in a time zone that is NOT the browser's time zone
    2.) The ISO 8601 string is a time just before spring daylight savings (e.g. 1:30 am standard time)
    3.) The ISO 8601 string is in a time zone that is "earlier" than the browsers (e.g. browser is in central, and ISO string is in pacific, earlier here means "less than" as far as offset is concerned).

    This can very easily be illustrated with either Firefox or Chrome, comparing the Date() constructor to parseDate:

    Here my browser is in central time zone

    Code:
    Date.parseDate("2010-03-14T01:30:00-08:00", "c")
    Sun Mar 14 2010 03:30:00 GMT-0500 (Central Daylight Time)

    Code:
    new Date("2010-03-14T01:30:00-08:00")
    Sun Mar 14 2010 04:30:00 GMT-0500 (Central Daylight Time)

    Note that the time is wrong when using Date.parseDate()
    The millisecond equivalent for "2010-03-14T01:30:00-08:00" is 1268559000000, but with using Date.parseDate() you end up with:

    Code:
    Ext.Date.parseDate("2010-03-14T01:30:00-08:00", "c").getTime()
    1268555400000

    Which is a difference of 3,600,000 milliseconds, or 1 hour (as evident with the other example of 3:30 being off an hour from 4:30).

    Also it seems that this is a problem in Both ExtJS 3.3.1 and ExtJS 4.0.0

  2. #2
    Ext JS Premium Member
    Join Date
    Nov 2009
    Posts
    233
    Vote Rating
    1
    chinabuffet is on a distinguished road

      0  

    Default


    I am also having this problem.

  3. #3
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I can move this thread to Bugs if you want.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  4. #4
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I can move this thread to Bugs if you want.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  5. #5
    Sencha User
    Join Date
    Dec 2010
    Posts
    21
    Vote Rating
    0
    nkremer is on a distinguished road

      0  

    Default


    Yeah, that's be great. Thanks.

Similar Threads

  1. [CLOSED][3.0.3] ISO 8601 Date format doesn't understand short timezone
    By grzegorz.borkowski in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 16 Jan 2010, 11:35 PM
  2. Date.parseDate bug?
    By datrus in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Dec 2007, 4:41 PM
  3. Replies: 2
    Last Post: 4 Nov 2007, 11:13 PM
  4. [OPEN] Date.parseDate format code O doesn't work
    By CurtisDuhn in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 21 Jun 2007, 9:18 AM

Thread Participants: 2

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