~sircmpwn/hnstats

d1f726688f769534727041ee09369971e88704eb — Drew DeVault 6 years ago 8c2a8f9
Parse dates for non-title events
1 files changed, 8 insertions(+), 0 deletions(-)

M templates/article.html
M templates/article.html => templates/article.html +8 -0
@@ 162,6 162,14 @@ for (var i = 0; i < data.title_changes.length; i++) {
  data.title_changes[i].date = new Date(data.title_changes[i].date + "+00:00");
}

for (var i = 0; i < data.status_changes.length; i++) {
  data.status_changes[i].date = new Date(data.status_changes[i].date + "+00:00");
}

for (var i = 0; i < data.url_changes.length; i++) {
  data.url_changes[i].date = new Date(data.url_changes[i].date + "+00:00");
}

function createTimeChart(selector, yfunc, filter, invert) {
  var samples = filter ? data.samples.filter(filter) : data.samples;
  var elem = document.querySelector(selector);