10

When editing an experience's Time Frame I get few issues:

1.In the Month drop down list, 'January' is not there. This is the generated markup

<select class="date" data-val="true" data-val-number="The field StartMonth must be a number." id="StartMonth" name="StartMonth"><option value="0"></option>
<option value="1">February</option>
<option value="2">March</option>
<option value="3">April</option>
<option value="4">May</option>
<option selected="selected" value="5">June</option>
<option value="6">July</option>
<option value="7">August</option>
<option value="8">September</option>
<option value="9">October</option>
<option value="10">November</option>
<option value="11">December</option>
<option value="12"></option>
</select>

2.If I select, "June" here, in the profile page it shows "May" that is just one month earlier than what I've actually selected.

i've taken the screenshots. please let me know if submitting those will help.

  • 2
    Someone started the for loop at 1 instead of 0... rolls eyes – animuson Nov 11 '12 at 5:41
  • then, where is January? it should not be omitted. it could be set for 0. – HungryCoder Nov 11 '12 at 5:44
  • 1
    The array is likely [ 0 => January, 1 => February, 2 => March, ... ]. If you start the loop at 1 instead of 0, and go 12 spaces, you'll start at February, go through December, and then get a warning for trying to access element [12] which doesn't exist, which oddly looks like what's happening here. Note the actual value 0 at the top is used for the "not specified" option. – animuson Nov 11 '12 at 5:45
  • The list of month names has 13 values, and a recent refactor assumed the extra was at the front instead of the end. – mjibson Nov 12 '12 at 4:48
2

This has been fixed. Thanks for the report.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .