<p dir="auto">Symfony Standard Edition v2.1.2</p>
<p dir="auto">While looking at some of the form input options, I found an odd problem. When creating a birthday input using a range above 110 (such as the default of 120), any choices above (date('Y') - 110) aren't being displayed even though an option element is being created. Is anyone else having this problem?</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function indexAction() {
    $form = $this-&gt;createFormBuilder()
        -&gt;add('birthday', 'birthday')
        -&gt;add('birthday_working', 'birthday', array(
            'years' =&gt; range(date('Y') - 110, date('Y')),
        ))
        -&gt;getForm();

    // Template is the basic form template from the book
    return $this-&gt;render('ABCDefaultBundle:Default:default.html.twig', array(
        'form' =&gt; $form-&gt;createView(),
    ));
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">indexAction</span>() {
    <span class="pl-s1"><span class="pl-c1">$</span>form</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">createFormBuilder</span>()
        -&gt;<span class="pl-en">add</span>(<span class="pl-s">'birthday'</span>, <span class="pl-s">'birthday'</span>)
        -&gt;<span class="pl-en">add</span>(<span class="pl-s">'birthday_working'</span>, <span class="pl-s">'birthday'</span>, <span class="pl-en">array</span>(
            <span class="pl-s">'years'</span> =&gt; range(date(<span class="pl-s">'Y'</span>) - <span class="pl-c1">110</span>, date(<span class="pl-s">'Y'</span>)),
        ))
        -&gt;<span class="pl-en">getForm</span>();

    <span class="pl-c">// Template is the basic form template from the book</span>
    <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">render</span>(<span class="pl-s">'ABCDefaultBundle:Default:default.html.twig'</span>, <span class="pl-en">array</span>(
        <span class="pl-s">'form'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">createView</span>(),
    ));
}</pre></div>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div id=&quot;form_birthday&quot;&gt;
    &lt;select id=&quot;form_birthday_year&quot; name=&quot;form[birthday][year]&quot; required=&quot;required&quot;&gt;
        &lt;option value=&quot;1892&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1893&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1894&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1895&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1896&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1897&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1898&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1899&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1900&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1901&quot;&gt;&lt;/option&gt;
        &lt;option value=&quot;1902&quot;&gt;1902&lt;/option&gt;
        &lt;option value=&quot;1903&quot;&gt;1903&lt;/option&gt;
        &lt;option value=&quot;1904&quot;&gt;1904&lt;/option&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">form_birthday</span>"<span class="pl-kos">&gt;</span>
    <span class="pl-kos">&lt;</span><span class="pl-ent">select</span> <span class="pl-c1">id</span>="<span class="pl-s">form_birthday_year</span>" <span class="pl-c1">name</span>="<span class="pl-s">form[birthday][year]</span>" <span class="pl-c1">required</span>="<span class="pl-s">required</span>"<span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1892</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1893</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1894</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1895</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1896</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1897</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1898</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1899</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1900</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1901</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1902</span>"<span class="pl-kos">&gt;</span>1902<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1903</span>"<span class="pl-kos">&gt;</span>1903<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span>
        <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1904</span>"<span class="pl-kos">&gt;</span>1904<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">... and so on.</p>
<p dir="auto">IntlDateFormatter have some issues in transformation of Date.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$fmt = new IntlDateFormatter('en_US', IntlDateFormatter::SHORT, IntlDateFormatter::SHORT, 'UTC', IntlDateFormatter::GREGORIAN, 'yyyy');

$value = new DateTime();
$value-&gt;setDate(1900, 1, 1);

var_dump($fmt-&gt;format($value));"><pre class="notranslate"><code class="notranslate">$fmt = new IntlDateFormatter('en_US', IntlDateFormatter::SHORT, IntlDateFormatter::SHORT, 'UTC', IntlDateFormatter::GREGORIAN, 'yyyy');

$value = new DateTime();
$value-&gt;setDate(1900, 1, 1);

var_dump($fmt-&gt;format($value));
</code></pre></div>
<p dir="auto">Expected: string '1900'<br>
Actual: boolean false</p>
<p dir="auto">Since Date widget base on this formatter, by default it only display years in range 1902-2037.</p>