From 11a7f1d20e202f82d2cd5e677e80f485a990e9a6 Mon Sep 17 00:00:00 2001 From: Scritches Date: Sat, 14 Apr 2018 14:01:36 -0400 Subject: [PATCH] Fix ~lastfm registered date display --- modules/lastfm/lastfm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lastfm/lastfm.js b/modules/lastfm/lastfm.js index 91e6a5b..9aa254d 100644 --- a/modules/lastfm/lastfm.js +++ b/modules/lastfm/lastfm.js @@ -155,7 +155,7 @@ var lastfm = function(dbot) { event.reply(dbot.t('lfm_profile', { 'user': user.currentNick, '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 })); } else {