Merge pull request #5696 from FreeCodeCamp/fix/add-release-date-to-ziplines

make challenges new and extend to 60 days
This commit is contained in:
Rex Schrader
2015-12-31 22:37:16 -08:00
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) {