Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User ZaAaV's Avatar
    Join Date
    Nov 2007
    Location
    Jersey City, NJ
    Posts
    19
    Vote Rating
    0
    ZaAaV is on a distinguished road

      0  

    Exclamation Problem in the dateFormat c mixing time and greenwich offset...

    Problem in the dateFormat c mixing time and greenwich offset...


    Hey everyone, I hope I am not overlapping with another bug, I researched and didn't see anyone asking about that so here is my story:

    I get a date in my JSON response that is in this format:
    Code:
    2011-09-23T04:00:00-07:00
    I read it using the ISO dateFormat in my data model's field config:
    Code:
    {name: 'start_date', type: 'date', dateFormat:'c'}
    when I render it in my grid using a renderer such as:
    Code:
    Ext.util.Format.dateRenderer('m/d/Y, g:ia \\G\\M\\TP')
    I obtain:
    Code:
    09/23/2011, 7:00am GMT-04:00
    So it appears that there is a mixup between the time and the GMT offset... did any of you noticed that?

    Let me know, thanks and sorry again if that's a duplicate... I'm going to continue searching if that was addressed somewhere else...

  2. #2
    Sencha User ZaAaV's Avatar
    Join Date
    Nov 2007
    Location
    Jersey City, NJ
    Posts
    19
    Vote Rating
    0
    ZaAaV is on a distinguished road

      0  

    Exclamation mmm getting more and more interesting...

    mmm getting more and more interesting...


    Alright, now I tested with more date, when I use:
    Code:
    2011-07-19T19:26:21-07:00
    I get:
    Code:
    07/19/2011, 10:26pm GMT-04:00
    Does it happen to anyone else? I mean, the hour and GMT seems correct, just that it transpose everything by 3 hours... I am not sure why...

    Maybe some of the answer lie there: http://stackoverflow.com/questions/4...-and-timezones
    Last edited by ZaAaV; 1 Nov 2011 at 12:28 PM. Reason: adding search results...

Tags for this Thread