mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-12-06 15:48:02 +00:00
Fix sortable date column ordering for 12 AM (midnight) times (#27032)
This commit is contained in:
1 parent
30d8c13e9b
commit
ab6144d074
1 file changed
+2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user