From 0d96daf26127c946d3a67a53378a98b31e3e8d78 Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Wed, 9 Feb 2022 20:01:47 +0100 Subject: [PATCH] since we store the date now in the json object, let's just use that --- web/js/opentrashmail.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/js/opentrashmail.js b/web/js/opentrashmail.js index 796c970..2b7fb61 100644 --- a/web/js/opentrashmail.js +++ b/web/js/opentrashmail.js @@ -114,7 +114,7 @@ function updateEmailTable() $("#nomailyet").remove(); if(admin===true) { - dateofemail=em.split("-")[0]; + //dateofemail=em.split("-")[0]; email = em.substring(em.indexOf('-') + 1); } else dateofemail = em; @@ -124,6 +124,7 @@ function updateEmailTable() //var datestring = date.getDate()+"."+date.getMonth()+"."+date.getFullYear()+" "+date.getHours()+":"+date.getMinutes(); var datestring = moment.unix(parseInt(dateofemail/1000)).format(data.dateformat); // Use moment.js formatting var ed = data.emails[em] + email = ed.email; $("#emailtable").append('\ \ '+(index++)+'\