1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    16
    Vote Rating
    0
    srarnold is on a distinguished road

      0  

    Default Unanswered: Displaying future dates in chrome not working

    Unanswered: Displaying future dates in chrome not working


    I have a grid displayed with the Date/Time column, using the following render:
    dateRenderer('d/m/Y g:i a'), now this displays all dates and times fine under IE and FireFox, but under Google Chrome it is displaying as NaN/NaN/0Nan 12:NaN pm,

    Attached is screen shot from Chrome
    Issue1.png
    Now the same from FireFox, this is also the same in IE
    Issue1Correct.png
    Is this a bug or is it just a simple Render issue, if so can some body let me know which format I should use.

    Thanks

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,642
    Answers
    431
    Vote Rating
    582
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    It's most likely a parsing issue, WebKit is a bit more strict if you're using new Date() and passing it a string.

    What does your server data look like? Your model?
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    16
    Vote Rating
    0
    srarnold is on a distinguished road

      0  

    Default


    Thanks, you pointed me in the right direction, the problem was with the DateTime format coming from my web service, this has now been sorted.

Thread Participants: 1

Tags for this Thread