Merge pull request #157 from rsareth/master

Sorting: Moment plug-in now supports milliseconds
pull/158/head
Allan Jardine 10 years ago
commit cb2e83e07e

@ -41,7 +41,7 @@ $.fn.dataTable.moment = function ( format, locale ) {
types.order[ 'moment-'+format+'-pre' ] = function ( d ) {
return d === '' || d === null ?
-Infinity :
moment( d, format, locale, true ).unix();
parseInt( moment( d, format, locale, true ).format( 'x' ), 10 );
};
};

Loading…
Cancel
Save