1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-06-06 14:43:23 +00:00

Rename getLastUpdated() to formatDate()

This commit is contained in:
asmsuechan
2017-07-08 13:09:33 +09:00
parent 81e8a290f0
commit a7bd3f253f
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import moment from 'moment'
* @param {mixed}
* @return {string}
*/
export function getLastUpdated (date) {
export function formatDate (date) {
const m = moment(date)
if (!m.isValid()) {
throw Error('Invalid argument.')