mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Automagic Year
This commit is contained in:
parent
d19d0844a9
commit
32bd01ab88
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ module.exports = {
|
|||
},
|
||||
getYearOptions: function () {
|
||||
return Array.apply(null, Array(100)).map(function (v, id) {
|
||||
var year = 2017 - id;
|
||||
var year = new Date().getFullYear() - id;
|
||||
return {value: year, label: year};
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue