forked from GitHub/dbot
Fix ~lastfm registered date display
This commit is contained in:
parent
86d0a6f31b
commit
11a7f1d20e
@ -155,7 +155,7 @@ var lastfm = function(dbot) {
|
|||||||
event.reply(dbot.t('lfm_profile', {
|
event.reply(dbot.t('lfm_profile', {
|
||||||
'user': user.currentNick,
|
'user': user.currentNick,
|
||||||
'plays': profile.playcount.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"),
|
'plays': profile.playcount.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"),
|
||||||
'date': moment(profile.registered['#text']).format('DD/MM/YYYY'),
|
'date': moment(profile.registered['#text'] * 1000).format('DD/MM/YYYY'),
|
||||||
'link': profile.url
|
'link': profile.url
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user