Created
February 4, 2013 14:50
-
-
Save revolunet/4707132 to your computer and use it in GitHub Desktop.
ExtJS date filter fix for Internet Explorer (IE8)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var originalFormat = Ext.util.Format.date; | |
Ext.override(Ext.util.Format, { | |
date: function(v, format) { | |
if (Ext.isIE && !Ext.isDate(v)) { | |
if (v && v.indexOf('T')>-1) { | |
// assume ISO format | |
v = Ext.Date.parse(v, 'Y-m-dTH:i:s.u'); | |
} | |
} | |
return originalFormat(v, format); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment