combodate icon indicating copy to clipboard operation
combodate copied to clipboard

Default maxYear to the current year, not 2015

Open colbywhite opened this issue 10 years ago • 1 comments

For an example, take a look at the demo page. None of those dropdowns allow you to select 2016 since the default max is 2015.

The default should be whatever the current year is. The trick to that will be dealing with timezones. The current year will be different depending on browser.

colbywhite avatar Jan 06 '16 22:01 colbywhite

+1 I'm lazy to make a pull-request, but the solution is pretty simple:

In src/combodate.js, line 513, replace: maxYear: 2015 by: maxYear: (new Date()).getFullYear()

vcarel avatar Jan 21 '16 10:01 vcarel