-
12 Mar 2012 12:21 PM #1
IE7/8/Mozilla Date Time Error: Daylight Savings Time + Leap Year
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"
-
12 Mar 2012 2:59 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
You should always specify a dateFormat. If you do does it resolve the issue?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote