Results 1 to 2 of 2

Thread: IE7/8/Mozilla Date Time Error: Daylight Savings Time + Leap Year

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Jul 2010
    Posts
    191
    Vote Rating
    0
      0  

    Default IE7/8/Mozilla Date Time Error: Daylight Savings Time + Leap Year

    We saw unusual behavior in code that read a date string into a field of type 'date'. Date values for March 10 between 2:00 am and 2:59 were reported in IE7 &8 as 1:00 to 1:59. It looks like IE (and FF) didn't realize that it was leap year and removed the skipped hour of the wrong day. I think I can work around this by providing a format for the field. Normally it's good enough to just say type:'date', but I'm going to add a dateFormat. This probably won't be a problem again until the next leap year. The code without the dateFormat works OK in chrome.
    "NOTIFICATION_DT_TM":"03\/10\/12 02:02" renders as 03\/10\/12 01:02
    Code:
     }, {                            name : 'NOTIFICATION_DT_TM'
                                ,type : 'date'
                                ,dateFormat : "m/d/y H:i"

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    You should always specify a dateFormat. If you do does it resolve the issue?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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