Skip to content

Instantly share code, notes, and snippets.

@revolunet
Created February 4, 2013 14:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save revolunet/4707132 to your computer and use it in GitHub Desktop.
Save revolunet/4707132 to your computer and use it in GitHub Desktop.
ExtJS date filter fix for Internet Explorer (IE8)
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