in packages/tablesorter-powerbi/src/Utils.ts [42:76]
addToCalculation(date: Date) {
if (prevDate && date) {
hasDates = true;
const fullYear = date.getFullYear();
if (fullYear && fullYear !== prevDate.getFullYear()) {
showYear = true;
}
if (date.getMilliseconds()) {
showMilliseconds = true;
}
if (date.getSeconds()) {
showSeconds = true;
}
if (date.getMinutes()) {
showMinutes = true;
}
if (date.getHours()) {
showHours = true;
}
if (date.getDate() - 1) {
showDay = true;
}
if (date.getMonth()) {
showMonth = true;
}
}
prevDate = date;
},