Skip to content

Commit

Permalink
Merge pull request #546 from JMolenkamp/master
Browse files Browse the repository at this point in the history
Use the set moment locale as a fallback instead of fixed 'en'
  • Loading branch information
AllanJard authored Sep 6, 2022
2 parents 9b7b8fe + d405f51 commit a25c282
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 a25c282

Please sign in to comment.