From a976c46a76304f8f56162aba875b7e8500aee84d Mon Sep 17 00:00:00 2001 From: marktaiwan Date: Fri, 6 Mar 2015 21:48:20 +0800 Subject: [PATCH] Show correct time on external preview allowed to work with local-time.js --- js/post-hover.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/post-hover.js b/js/post-hover.js index e5bb61d7..f19b3fa3 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -181,12 +181,12 @@ onready(function(){ return (i === 0) ? bytes +' '+ sizes[i] : (bytes / Math.pow(1024, i)).toFixed(2) +' ' +sizes[i]; }; - var time = (!localStorage.show_relative_time || localStorage.show_relative_time === 'false') ? dateformat(new Date(data.time)) : timeDifference(Date.now(), data.time); + var time = (!localStorage.show_relative_time || localStorage.show_relative_time === 'false') ? dateformat(new Date(data.time*1000)) : timeDifference(Date.now(), data.time*1000); var $post = $('