diff options
author | Wu Cheng-Han | 2015-07-02 00:10:20 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2015-07-02 00:10:20 +0800 |
commit | 10c9811fc534a2738c19d8f74a447ed500b730a2 (patch) | |
tree | 8e46f99f36660d9c011d135fc6ce736733a5876b /public/js/history.js | |
parent | f7f8c901f4bc39c3ed0a2bdfe1cbaa1ee6957999 (diff) |
Jump to 0.3.1
Diffstat (limited to 'public/js/history.js')
-rw-r--r-- | public/js/history.js | 3 |
1 files changed, 2 insertions, 1 deletions
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]); } |