From d405f51abb439e8e6149b0285a654ba1567284f8 Mon Sep 17 00:00:00 2001 From: Joost Molenkamp Date: Tue, 6 Sep 2022 12:08:41 +0200 Subject: [PATCH] Use the set moment locale as a fallback instead of fixed 'en' --- dataRender/datetime.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dataRender/datetime.js b/dataRender/datetime.js index c866f97c..0d97d8c2 100644 --- a/dataRender/datetime.js +++ b/dataRender/datetime.js @@ -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) {