From 10c9811fc534a2738c19d8f74a447ed500b730a2 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Thu, 2 Jul 2015 00:10:20 +0800 Subject: Jump to 0.3.1 --- public/js/history.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public/js/history.js') diff --git a/public/js/history.js b/public/js/history.js index c5db94c5..15e46cc6 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -319,8 +319,9 @@ function parseToHistory(list, notehistory, callback) { else if (notehistory && notehistory.length > 0) { for (var i = 0; i < notehistory.length; i++) { //parse time to timestamp and fromNow - notehistory[i].timestamp = moment(notehistory[i].time, 'MMMM Do YYYY, h:mm:ss a').unix(); + notehistory[i].timestamp = moment(notehistory[i].time, 'MMMM Do YYYY, h:mm:ss a').valueOf(); notehistory[i].fromNow = moment(notehistory[i].time, 'MMMM Do YYYY, h:mm:ss a').fromNow(); + notehistory[i].time = moment(notehistory[i].time, 'MMMM Do YYYY, h:mm:ss a').format('llll'); if (list.get('id', notehistory[i].id).length == 0) list.add(notehistory[i]); } -- cgit v1.2.3