since we store the date now in the json object, let's just use that

This commit is contained in:
Christian Haschek 2022-02-09 20:01:47 +01:00
parent 54dc222d0e
commit 0d96daf261

View file

@ -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('\
<tr class="anemail" email="'+email+'" messageid="'+dateofemail+'">\
<th scope="row">'+(index++)+'</th>\