make challenges new and extend to 60 days

This commit is contained in:
Quincy Larson
2016-01-01 00:34:05 -06:00
parent ab8abcbbf6
commit 035b6027de
4 changed files with 31 additions and 16 deletions

View File

@@ -90,7 +90,7 @@ const dateFormat = 'MMM MMMM DD, YYYY';
function shouldShowNew(element, block) {
if (element) {
return typeof element.releasedOn !== 'undefined' &&
moment(element.releasedOn, dateFormat).diff(moment(), 'days') >= -30;
moment(element.releasedOn, dateFormat).diff(moment(), 'days') >= -60;
}
if (block) {