Skip to content

Commit

Permalink
Use the set moment locale as a fallback instead of fixed 'en'
Browse files Browse the repository at this point in the history
  • Loading branch information
JMolenkamp committed Sep 6, 2022
1 parent 9b7b8fe commit d405f51
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dataRender/datetime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d405f51

Please sign in to comment.