From a555611cc61e170731af449dfd695b64af469cb0 Mon Sep 17 00:00:00 2001 From: Philip Kirkbride Date: Thu, 13 Jul 2017 11:44:22 -0400 Subject: [PATCH] Use js instead of moment to parse date to avoid warning --- puppetboard/static/js/tables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puppetboard/static/js/tables.js b/puppetboard/static/js/tables.js index ed99bb5..c44a71b 100644 --- a/puppetboard/static/js/tables.js +++ b/puppetboard/static/js/tables.js @@ -12,7 +12,7 @@ $('thead th.date').data('sortBy', function(th, td, tablesort) { var tdTime = td.text().replace("-", ""); - return moment.utc(tdTime).unix(); + return moment.utc(new Date(tdTime)).unix(); }); $('input.filter-table').parent('div').removeClass('hide');