Browse Source

Properly processes time when it is 'n/a'.

When a site is down time is now properly processed.
master
Jonathan Rosenbaum 8 years ago
parent
commit
b2c537e347
  1. 5
      public/js/water-the-theme-public.js

5
public/js/water-the-theme-public.js

@ -37,9 +37,14 @@
$("td[datetime]").each(function(key,value){ $("td[datetime]").each(function(key,value){
var dt = $(value).attr('datetime'); var dt = $(value).attr('datetime');
if (dt != 'n/a') {
var d = new Date(Number(dt)); var d = new Date(Number(dt));
d = d.toLocaleString(); d = d.toLocaleString();
$(this).html(d); $(this).html(d);
} else {
$(this).html(dt);
}
}); });
}); });

Loading…
Cancel
Save