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. 11
      public/js/water-the-theme-public.js

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

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

Loading…
Cancel
Save