Wanted to share with you an update to the Countdown Template. Currently, there’s a bug in the template involving months with less than 31 days. This is caused by a problem with how month and day are being set separately.
This bug will be fixed in the next release, but in the meantime we’d like to provide a quick solution. You can download the fixed project or script below, or fix it manually by doing the following replacements in CountdownController.js:
At lines 295-296:
customUserDate.setDate( day );
customUserDate.setMonth( month - 1 );
customUserDate.setMonth( month - 1, day );
At lines 345-346:
date.setDate( 29 );
date.setMonth( 1 );
date.setMonth( 1, 29 );
At lines 354-355:
date.setDate( date.getDate() );
date.setMonth( date.getMonth() );
roundedDay.setMonth( date.getMonth(), date.getDate() );
Or, download the fixed Countdown template project here: Countdown Template
Or, download the fixed CountdownController.js file here and replace it in your existing project: CountdownController
Special thanks to those of you who reported this bug.
Please sign in to leave a comment.