Commit dacd95dd authored by Yadd's avatar Yadd
Browse files

Date in readable format

parent 7d83901f
...@@ -262,6 +262,10 @@ function getCfgAttributes() { ...@@ -262,6 +262,10 @@ function getCfgAttributes() {
} }
function setCfgAttributes(data){ function setCfgAttributes(data){
var t = new Array('cfgAuthor','cfgAuthorIP','cfgDate'); var t = new Array('cfgAuthor','cfgAuthorIP','cfgDate');
if(data.cfgDate.match(/^\d+$/)){
var d=new Date(data.cfgDate*1000);
data.cfgDate=d.toLocaleString();
}
for(i in t){ for(i in t){
$('#'+t[i]).text(data[t[i]]); $('#'+t[i]).text(data[t[i]]);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment