Merge pull request from TheGrits/patch-3

Fix gh-1159: Add 2017 to Teacher Registration
This commit is contained in:
Ray Schamp 2017-01-31 11:08:16 -05:00 committed by Matthew Taylor
parent ca0985571e
commit 22802f87e8

View file

@ -324,7 +324,7 @@ module.exports = {
},
getYearOptions: function () {
return Array.apply(null, Array(100)).map(function (v, id) {
var year = 2016 - id;
var year = new Date().getFullYear() - id;
return {value: year, label: year};
});
},