From 6ca8c837a7bafa0bb3a290c8d42ce73a39eb52f3 Mon Sep 17 00:00:00 2001 From: greggg230 Date: Mon, 31 Mar 2014 13:47:55 -0500 Subject: [PATCH] Update datetime-us.js Datetime regex matches with PM/Pm/pm, but only takes it into account in calculation if "pm" is provides, causing sorting bugs in certain cases. --- sorting/datetime-us.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorting/datetime-us.js b/sorting/datetime-us.js index 7a59673..91ab51b 100644 --- a/sorting/datetime-us.js +++ b/sorting/datetime-us.js @@ -27,7 +27,7 @@ jQuery.extend(jQuery.fn.dataTableExt.oSort, { year = b[3], hour = b[4], min = b[5], - ap = b[6]; + ap = b[6].toLowerCase(); if (hour == '12') { hour = '0';