vitalets / combodate

Dropdown date and time picker
http://vitalets.github.com/combodate
207 stars 82 forks source link

Months start at 0 not 1 #75

Open ghost opened 6 years ago

ghost commented 6 years ago

When viewing the source code for the month dropdown January starts at 0 instead of 1, leaving the submitted values to be a month out.


<option value="0">Jan</option>
<option value="1">Feb</option>
<option value="2">Mar</option>
<option value="3">Apr</option>
<option value="4">May</option>
<option value="5">Jun</option>
<option value="6">Jul</option>
<option value="7">Aug</option>
<option value="8">Sep</option>
<option value="9">Oct</option>
<option value="10">Nov</option>
<option value="11">Dec</option>
detaybey commented 6 years ago

This causes the returning MomentObject to be invalid.