1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +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

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.')