Commit 74bb4314 by Manzar Hussain

add date

parent 220c6704
......@@ -329,14 +329,14 @@
let unix_date_timestamp = unix_timestamp;
// Create a new JavaScript Date object based on the timestamp
// multiplied by 1000 so that the argument is in milliseconds, not seconds.
var date = new Date(unix_date_timestamp * 1000);
var date1 = new Date(unix_date_timestamp * 1000);
var date = date.getDate();
var date = date1.getDate();
var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var month = date.getMonth();
var year = date.getFullYear();
var month = date1.getMonth();
var year = date1.getFullYear();
var full_year = date+" "+months[month]+" "+year;
$('#latest_update').text("Latest updated on " + full_year);
......
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