From 497f743976db86455a30e2a281c20f8d5084584b Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Sat, 9 Jul 2016 16:08:34 -0400 Subject: [PATCH] Initialize js date directly --- realms/templates/wiki/history.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/realms/templates/wiki/history.html b/realms/templates/wiki/history.html index 8595554..78df6c0 100644 --- a/realms/templates/wiki/history.html +++ b/realms/templates/wiki/history.html @@ -34,10 +34,10 @@ { "data": "message" }, { "data": "time", "render": function (data) { - var date = new Date(0); - date.setUTCSeconds(data) + var date = new Date(data * 1000); return date.toDateString(); - }} + } + } ] }); });