From 1c633a8ee40026013aa3e44f60ac496b0ee538aa Mon Sep 17 00:00:00 2001 From: David Liu Date: Sun, 14 Jun 2015 15:25:11 -0700 Subject: [PATCH] Show correct achievement earned dates on user page fixes #2524 --- app/templates/user/main-user-view.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/user/main-user-view.jade b/app/templates/user/main-user-view.jade index 444ec9d3d..b1bb6ec13 100644 --- a/app/templates/user/main-user-view.jade +++ b/app/templates/user/main-user-view.jade @@ -73,7 +73,7 @@ block append content tr td a(href="/clans/#{clan.id}")= clan.get('name') - td + td if idNameMap && idNameMap[clan.get('ownerID')] a(href="/user/#{clan.get('ownerID')}")= idNameMap[clan.get('ownerID')] else @@ -160,7 +160,7 @@ block append content each achievement, index in earnedAchievements.models tr(class=index > 4 ? 'hide' : '') td= achievement.get('achievementName') - td= moment().format("MMMM Do YYYY", achievement.get('changed')) + td= moment(achievement.get('changed')).format("MMMM Do YYYY") if achievement.get('achievedAmount') td= achievement.get('achievedAmount') else