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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user