Use the set moment locale as a fallback instead of fixed 'en'

pull/546/head
Joost Molenkamp 2 years ago
parent 9b7b8feb0f
commit d405f51abb

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

Loading…
Cancel
Save