1. #1
    Sencha User
    Join Date
    Jun 2007
    Location
    Location, Location....
    Posts
    21
    Vote Rating
    0
    Tim Siney is on a distinguished road

      0  

    Question Date with incorrect timezone

    Date with incorrect timezone


    I have a problem with the Ext Date class seemingly returning the wrong timezone for a parsed date. Using the code below I create a date object for the 24th May, 1966 15:46 BST:

    Code:
    date = "1966-05-24T15:46:01+0100";
    var pDate = Date.parseDate(date, "Y-m-d\\TH:i:sO", false);
    I then call this:

    Code:
    console.log(pDate.getGMTOffset());
    I am expecting to get the offset associated with the orignal date back (which is GMT + 1), but instead I get the local timezone of the browser instead. If the browser is set to a timezone far enough ahead GMT, the day portion of the date will also be rolled over (so the date will now appear as 25th May, 1966).

    How do I get around this and get Ext to recognise the correct timezone of the parsed date rather than the local browser timezone?

    If this is not possible, can Ext be forced to use GMT rather than trying to interpret timezones?

  2. #2
    Ext User
    Join Date
    Sep 2010
    Location
    Baltimore, MD
    Posts
    66
    Vote Rating
    0
    Foster is on a distinguished road

      0  

    Default


    I used this in my app which worked nicely

    http://www.sencha.com/forum/showthre...UTC-conversion

  3. #3
    Sencha User
    Join Date
    Jun 2007
    Location
    Location, Location....
    Posts
    21
    Vote Rating
    0
    Tim Siney is on a distinguished road

      0  

    Default


    Thanks, some useful ideas in that thread.

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. Replies: 4
    Last Post: 27 Nov 2009, 1:37 AM
  3. Date Time Display Issue? Stop timezone Conversion?
    By nromanel in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 6 Feb 2009, 2:28 PM
  4. Date format for XML parsing -- timezone
    By skandragon in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 17 Apr 2008, 8:39 AM
  5. Date.js getTimezone function displaying wrong timezone
    By jrm213 in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 2 Aug 2007, 8:38 AM

Thread Participants: 1

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