Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
Max Wu 2018-03-11 03:00:36 +08:00
parent dfd833dbe2
commit 8bfe51940f

View file

@ -304,7 +304,7 @@ function parseToHistory (list, notehistory, callback) {
notehistory[i].id = encodeNoteId(id) notehistory[i].id = encodeNoteId(id)
} }
} catch (err) { } catch (err) {
logger.error(err) console.error(err)
} }
// parse time to timestamp and fromNow // parse time to timestamp and fromNow
const timestamp = (typeof notehistory[i].time === 'number' ? moment(notehistory[i].time) : moment(notehistory[i].time, 'MMMM Do YYYY, h:mm:ss a')) const timestamp = (typeof notehistory[i].time === 'number' ? moment(notehistory[i].time) : moment(notehistory[i].time, 'MMMM Do YYYY, h:mm:ss a'))