Fix sortable date column ordering for 12 AM (midnight) times (#27032)

This commit is contained in:
Eunbin Son authored and GitHub committed 2026-10-04 16:55:17 +01:00
1 parent 30d8c13e9b
commit ab6144d074
1 file changed
+2
+2
View File
@@ -361,6 +361,8 @@ var Sortable = (function () {
hours = parseInt(hours);
if (dmatches[7] && dmatches[7].match(/pm/i) && hours < 12) {
hours += 12;
} else if (dmatches[7] && dmatches[7].match(/am/i) && hours === 12) {
hours = 0;
}
return new Date(year, month, day, hours, minutes, seconds, 0);
}