Results 1 to 2 of 2

Thread: [CLOSED]Date in Model converting to null in FireFox 4 RC

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Vote Rating
    1536
      0  

    Default [CLOSED]Date in Model converting to null in FireFox 4 RC

    In a Model, I have a field with type of date. In Chrome and Safari, it automatically converts it to a Date object but with Firefox 4 RC it does not. If I specify the dateFormat then it will work but why does it work without dateFormat in Chrome but not Firefox?

    Is this a bug in ExtJS or Firefox? It wouldn't be a surprise if it was Firefox since if you put this into Firebug:

    Code:
    new Date("2011-01-01");
    You will get a Date object for December 25th 19:00:00 -0500 for some odd reason. Firefox has always done something like this for as long as I can remember.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  2. #2
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,149
    Vote Rating
    201
      0  

    Default

    It's a bug in your code as You should always specify dateFormat , otherwise you will get browser specific behavior as you noted. Your code snippet does not pass valid parameters to the date constructor, see this MDC page for reference https://developer.mozilla.org/en/Jav...l_Objects/Date

Similar Threads

  1. [CLOSED]Model date fields issues on Android and iPhone
    By BrightSoul in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 20 Nov 2010, 3:13 AM
  2. [SOLVED] Renderer date value ok in Opera but null in IE and firefox
    By Maloupi in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 22 Dec 2009, 12:53 AM
  3. [2.??][CLOSED] Date Parsing Bug in Firefox 3.04?
    By byronwhitlock in forum Ext 2.x: Bugs
    Replies: 3
    Last Post: 26 Nov 2008, 11:41 AM
  4. [CLOSED] StoreListener.storeAdd(StoreEvent ev) model is null
    By LukasP in forum Ext GWT: Bugs (1.x)
    Replies: 2
    Last Post: 16 Jul 2008, 1:04 PM
  5. [2.0][CLOSED] Firefox 3 and Date selector
    By b0c1 in forum Ext 2.x: Bugs
    Replies: 4
    Last Post: 7 Feb 2008, 12:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •