Skip to content

Commit

Permalink
fix date extract
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Feb 5, 2024
1 parent 41d3aa7 commit f84f908
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function fetch() {
entry = {};
entry["id"]="<a href=\"#\" onclick=\"decrypt_and_download('"+element["_id"]+"')\">Download</a>";
entry["elementid"] = element["_id"];
var date = new Date(element["timestamp"][0]);
var date = new Date(parseInt(element["timestamp"][0]));
entry["timestamp"]=date.toLocaleDateString()+" "+date.toLocaleTimeString();
entry["hwa"]=element["hwa"];
downloadedData.push(entry);
Expand Down

0 comments on commit f84f908

Please sign in to comment.