Merge pull request #546 from JMolenkamp/master

Use the set moment locale as a fallback instead of fixed 'en'
pull/547/head
Allan Jardine 2 years ago committed by GitHub
commit a25c28206a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -97,13 +97,9 @@
$.fn.dataTable.render.moment = function ( from, to, locale ) { $.fn.dataTable.render.moment = function ( from, to, locale ) {
// Argument shifting // Argument shifting
if ( arguments.length === 1 ) { if ( arguments.length === 1 ) {
locale = 'en';
to = from; to = from;
from = 'YYYY-MM-DD'; from = 'YYYY-MM-DD';
} }
else if ( arguments.length === 2 ) {
locale = 'en';
}
return function ( d, type, row ) { return function ( d, type, row ) {
if (! d) { if (! d) {

Loading…
Cancel
Save