prettydate

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2016-12-19 22:03:04 -08:00
parent 8ea8edea99
commit 72646b8d5f
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3

View file

@ -49,7 +49,7 @@ if (el.textContent == 'Parent Directory'){
var rows = document.querySelectorAll('tr:not(.parent)');
Array.prototype.forEach.call(rows, function(item, index){
if (index !== 0) {
var date_holder = item.querySelectorAll('td:nth-child(2)')[0];
var date_holder = item.querySelectorAll('td:nth-child(3)')[0];
var date = date_holder.textContent;
date = prettyDate(date);
date_holder.innerHTML = date;