8383List of days available to the days field type. This option is only relevant
8484when the ``widget `` option is set to ``choice ``::
8585
86- 'days' => range(1, 31)
86+ // values displayed to users range from 0 to 30 (both inclusive)
87+ 'days' => range(1, 31),
88+
89+ // values displayed to users range from 1 to 31 (both inclusive)
90+ 'days' => array_combine(range(1, 31), range(1, 31)),
8791
8892placeholder
8993~~~~~~~~~~~
@@ -112,7 +116,11 @@ hours
112116List of hours available to the hours field type. This option is only relevant
113117when the ``widget `` option is set to ``choice ``::
114118
115- 'hours' => range(1, 24)
119+ // values displayed to users range from 0 to 23 (both inclusive)
120+ 'hours' => range(1, 24),
121+
122+ // values displayed to users range from 1 to 24 (both inclusive)
123+ 'hours' => array_combine(range(1, 24), range(1, 24)),
116124
117125input
118126~~~~~
@@ -161,7 +169,11 @@ minutes
161169List of minutes available to the minutes field type. This option is only relevant
162170when the ``widget `` option is set to ``choice ``::
163171
164- 'minutes' => range(1, 60)
172+ // values displayed to users range from 0 to 59 (both inclusive)
173+ 'minutes' => range(1, 60),
174+
175+ // values displayed to users range from 1 to 60 (both inclusive)
176+ 'minutes' => array_combine(range(1, 60), range(1, 60)),
165177
166178months
167179~~~~~~
@@ -171,7 +183,11 @@ months
171183List of months available to the months field type. This option is only relevant
172184when the ``widget `` option is set to ``choice ``::
173185
174- 'months' => range(1, 12)
186+ // values displayed to users range from 0 to 11 (both inclusive)
187+ 'months' => range(1, 12),
188+
189+ // values displayed to users range from 1 to 12 (both inclusive)
190+ 'months' => array_combine(range(1, 12), range(1, 12)),
175191
176192seconds
177193~~~~~~~
@@ -181,7 +197,11 @@ seconds
181197List of seconds available to the seconds field type. This option is only relevant
182198when the ``widget `` option is set to ``choice ``::
183199
184- 'seconds' => range(1, 60)
200+ // values displayed to users range from 0 to 59 (both inclusive)
201+ 'seconds' => range(1, 60),
202+
203+ // values displayed to users range from 1 to 60 (both inclusive)
204+ 'seconds' => array_combine(range(1, 60), range(1, 60)),
185205
186206weeks
187207~~~~~
@@ -191,7 +211,11 @@ weeks
191211List of weeks available to the weeks field type. This option is only relevant
192212when the ``widget `` option is set to ``choice ``::
193213
194- 'weeks' => range(1, 52)
214+ // values displayed to users range from 0 to 51 (both inclusive)
215+ 'weeks' => range(1, 52),
216+
217+ // values displayed to users range from 1 to 52 (both inclusive)
218+ 'weeks' => array_combine(range(1, 52), range(1, 52)),
195219
196220widget
197221~~~~~~
@@ -304,7 +328,11 @@ years
304328List of years available to the years field type. This option is only relevant
305329when the ``widget `` option is set to ``choice ``::
306330
307- 'years' => range(1, 100)
331+ // values displayed to users range from 0 to 99 (both inclusive)
332+ 'years' => range(1, 100),
333+
334+ // values displayed to users range from 1 to 100 (both inclusive)
335+ 'years' => array_combine(range(1, 100), range(1, 100)),
308336
309337Inherited Options
310338-----------------
0 commit comments